mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:27:33 +00:00
make target
This commit is contained in:
155
.github/workflows/compile.yml
vendored
155
.github/workflows/compile.yml
vendored
@@ -29,98 +29,83 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
goos: [linux, darwin, windows]
|
goos: [linux, darwin, windows]
|
||||||
goarch: [amd64, arm64]
|
goarch: [amd64, arm64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: actions/cache/restore@v4
|
||||||
-
|
timeout-minutes: 1
|
||||||
uses: actions/cache/restore@v4
|
name: restore console
|
||||||
timeout-minutes: 1
|
with:
|
||||||
name: restore console
|
path: ${{ inputs.console_cache_path }}
|
||||||
with:
|
key: ${{ inputs.console_cache_key }}
|
||||||
path: ${{ inputs.console_cache_path }}
|
fail-on-cache-miss: true
|
||||||
key: ${{ inputs.console_cache_key }}
|
- uses: actions/cache/restore@v4
|
||||||
fail-on-cache-miss: true
|
timeout-minutes: 1
|
||||||
-
|
name: restore core
|
||||||
uses: actions/cache/restore@v4
|
with:
|
||||||
timeout-minutes: 1
|
path: ${{ inputs.core_cache_path }}
|
||||||
name: restore core
|
key: ${{ inputs.core_cache_key }}
|
||||||
with:
|
fail-on-cache-miss: true
|
||||||
path: ${{ inputs.core_cache_path }}
|
- uses: actions/setup-go@v5
|
||||||
key: ${{ inputs.core_cache_key }}
|
with:
|
||||||
fail-on-cache-miss: true
|
go-version-file: "go.mod"
|
||||||
-
|
- name: compile
|
||||||
uses: actions/setup-go@v5
|
timeout-minutes: 5
|
||||||
with:
|
run: |
|
||||||
go-version-file: 'go.mod'
|
GOOS="${{matrix.goos}}" \
|
||||||
-
|
GOARCH="${{matrix.goarch}}" \
|
||||||
name: compile
|
VERSION="${{ inputs.version }}" \
|
||||||
timeout-minutes: 5
|
COMMIT_SHA="${{ github.sha }}" \
|
||||||
run: |
|
make compile_pipeline
|
||||||
GOOS="${{matrix.goos}}" \
|
- name: create folder
|
||||||
GOARCH="${{matrix.goarch}}" \
|
run: |
|
||||||
VERSION="${{ inputs.version }}" \
|
mkdir zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
COMMIT_SHA="${{ github.sha }}" \
|
mv zitadel zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
|
||||||
make compile_pipeline
|
cp LICENSE zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
|
||||||
-
|
cp README.md zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
|
||||||
name: create folder
|
tar -czvf zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
run: |
|
- uses: actions/upload-artifact@v4
|
||||||
mkdir zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
|
with:
|
||||||
mv zitadel zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
|
name: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
cp LICENSE zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
|
path: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
|
||||||
cp README.md zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
|
|
||||||
tar -czvf zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
|
|
||||||
-
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
|
|
||||||
path: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
|
|
||||||
|
|
||||||
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
|
||||||
-
|
with:
|
||||||
uses: depot/setup-action@v1
|
oidc: true
|
||||||
with:
|
- run: make login_standalone_out
|
||||||
oidc: true
|
working-directory: login
|
||||||
-
|
env:
|
||||||
run: make login_standalone_out
|
# latest if branch is main, otherwise image version which is the pull request number
|
||||||
env:
|
LOGIN_BAKE_CLI: depot bake
|
||||||
# latest if branch is main, otherwise image version which is the pull request number
|
DEPOT_PROJECT_ID: w47wkxzdtw
|
||||||
LOGIN_BAKE_CLI: depot bake
|
NODE_VERSION: ${{ inputs.node_version }}
|
||||||
DEPOT_PROJECT_ID: w47wkxzdtw
|
- name: move files
|
||||||
NODE_VERSION: ${{ inputs.node_version }}
|
run: |
|
||||||
-
|
cp login/LICENSE login/apps/login/standalone/
|
||||||
name: move files
|
cp login/README.md login/apps/login/standalone/
|
||||||
run: |
|
tar -czvf login.tar.gz -C login/apps/login/standalone .
|
||||||
cp login/LICENSE login/apps/login/standalone/
|
- uses: actions/upload-artifact@v4
|
||||||
cp login/README.md login/apps/login/standalone/
|
with:
|
||||||
tar -czvf login.tar.gz -C login/apps/login/standalone .
|
name: login
|
||||||
-
|
path: login.tar.gz
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: login
|
|
||||||
path: login.tar.gz
|
|
||||||
|
|
||||||
checksums:
|
checksums:
|
||||||
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
|
||||||
-
|
run: mv */*.tar.gz . && find . -type d -empty -delete
|
||||||
name: move files one folder up
|
working-directory: executables
|
||||||
run: mv */*.tar.gz . && find . -type d -empty -delete
|
- run: sha256sum * > checksums.txt
|
||||||
working-directory: executables
|
working-directory: executables
|
||||||
-
|
- uses: actions/upload-artifact@v4
|
||||||
run: sha256sum * > checksums.txt
|
with:
|
||||||
working-directory: executables
|
name: checksums.txt
|
||||||
-
|
path: executables/checksums.txt
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: checksums.txt
|
|
||||||
path: executables/checksums.txt
|
|
||||||
|
Reference in New Issue
Block a user