feat: initial theme for sr2 cloud
Some checks failed
ci / build_and_publish (push) Failing after 43s
Some checks failed
ci / build_and_publish (push) Failing after 43s
This commit is contained in:
parent
2a4c13268b
commit
2a07ccb335
10 changed files with 7592 additions and 56 deletions
28
.forgejo/workflows/ci.yaml
Normal file
28
.forgejo/workflows/ci.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: ci
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build_and_publish:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- run: npm install
|
||||
- run: sudo apt update && sudo apt install -y maven
|
||||
- run: npm run build-keycloak-theme
|
||||
- run: mv dist_keycloak/keycloak-theme-cloud-for-kc-all-other-versions.jar sr2-theme.jar
|
||||
- run: sha256sum sr2-theme.jar > sr2-theme.jar.sha256
|
||||
- run: |
|
||||
curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X DELETE "https://guardianproject.dev/api/packages/sr2/generic/keycloak-theme-cloud/latest"
|
||||
- run: |
|
||||
curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X PUT --upload-file sr2-theme.jar https://guardianproject.dev/api/packages/sr2/generic/keycloak-theme-cloud/latest/sr2-cloud-theme.jar
|
||||
- run: |
|
||||
curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X PUT --upload-file sr2-theme.jar.sha256 https://guardianproject.dev/api/packages/sr2/generic/keycloak-theme-cloud/latest/sr2-cloud-theme.jar.sha256
|
||||
Loading…
Add table
Add a link
Reference in a new issue