make target

This commit is contained in:
Max Peintner
2025-07-14 11:40:47 +02:00
parent ab79297b5c
commit ff1a620e89

View File

@@ -31,30 +31,25 @@ jobs:
goarch: [amd64, arm64] goarch: [amd64, arm64]
steps: steps:
- - uses: actions/checkout@v4
uses: actions/checkout@v4 - uses: actions/cache/restore@v4
-
uses: actions/cache/restore@v4
timeout-minutes: 1 timeout-minutes: 1
name: restore console name: restore console
with: with:
path: ${{ inputs.console_cache_path }} path: ${{ inputs.console_cache_path }}
key: ${{ inputs.console_cache_key }} key: ${{ inputs.console_cache_key }}
fail-on-cache-miss: true fail-on-cache-miss: true
- - uses: actions/cache/restore@v4
uses: actions/cache/restore@v4
timeout-minutes: 1 timeout-minutes: 1
name: restore core name: restore core
with: with:
path: ${{ inputs.core_cache_path }} path: ${{ inputs.core_cache_path }}
key: ${{ inputs.core_cache_key }} key: ${{ inputs.core_cache_key }}
fail-on-cache-miss: true fail-on-cache-miss: true
- - uses: actions/setup-go@v5
uses: actions/setup-go@v5
with: with:
go-version-file: 'go.mod' go-version-file: "go.mod"
- - name: compile
name: compile
timeout-minutes: 5 timeout-minutes: 5
run: | run: |
GOOS="${{matrix.goos}}" \ GOOS="${{matrix.goos}}" \
@@ -62,16 +57,14 @@ jobs:
VERSION="${{ inputs.version }}" \ VERSION="${{ inputs.version }}" \
COMMIT_SHA="${{ github.sha }}" \ COMMIT_SHA="${{ github.sha }}" \
make compile_pipeline make compile_pipeline
- - name: create folder
name: create folder
run: | run: |
mkdir zitadel-${{ matrix.goos }}-${{ matrix.goarch }} mkdir zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
mv zitadel zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/ mv zitadel zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
cp LICENSE zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/ cp LICENSE zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
cp README.md zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/ cp README.md zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
tar -czvf zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz zitadel-${{ matrix.goos }}-${{ matrix.goarch }} tar -czvf zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
- - uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4
with: with:
name: zitadel-${{ matrix.goos }}-${{ matrix.goarch }} name: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
path: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz path: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
@@ -79,27 +72,23 @@ jobs:
login: login:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - uses: actions/checkout@v4
uses: actions/checkout@v4 - uses: depot/setup-action@v1
-
uses: depot/setup-action@v1
with: with:
oidc: true oidc: true
- - run: make login_standalone_out
run: make login_standalone_out working-directory: login
env: env:
# latest if branch is main, otherwise image version which is the pull request number # latest if branch is main, otherwise image version which is the pull request number
LOGIN_BAKE_CLI: depot bake LOGIN_BAKE_CLI: depot bake
DEPOT_PROJECT_ID: w47wkxzdtw DEPOT_PROJECT_ID: w47wkxzdtw
NODE_VERSION: ${{ inputs.node_version }} NODE_VERSION: ${{ inputs.node_version }}
- - name: move files
name: move files
run: | run: |
cp login/LICENSE login/apps/login/standalone/ cp login/LICENSE login/apps/login/standalone/
cp login/README.md login/apps/login/standalone/ cp login/README.md login/apps/login/standalone/
tar -czvf login.tar.gz -C login/apps/login/standalone . tar -czvf login.tar.gz -C login/apps/login/standalone .
- - uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4
with: with:
name: login name: login
path: login.tar.gz path: login.tar.gz
@@ -108,19 +97,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [executable, login] needs: [executable, login]
steps: steps:
- - uses: actions/download-artifact@v4
uses: actions/download-artifact@v4
with: with:
path: executables path: executables
- - name: move files one folder up
name: move files one folder up
run: mv */*.tar.gz . && find . -type d -empty -delete run: mv */*.tar.gz . && find . -type d -empty -delete
working-directory: executables working-directory: executables
- - run: sha256sum * > checksums.txt
run: sha256sum * > checksums.txt
working-directory: executables working-directory: executables
- - uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4
with: with:
name: checksums.txt name: checksums.txt
path: executables/checksums.txt path: executables/checksums.txt