mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
ci/cd: fix github workflow to upload release binaries
Fixes issue #332 Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
c86f44cc53
commit
50a0831f1b
@@ -46,7 +46,7 @@ jobs:
|
||||
- name: Run build and test
|
||||
timeout-minutes: 30
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE && make
|
||||
cd $GITHUB_WORKSPACE && make && make ARCH=arm64 binary-arch-minimal && make ARCH=arm64 binary-arch
|
||||
env:
|
||||
S3MOCK_ENDPOINT: localhost:4566
|
||||
AWS_ACCESS_KEY_ID: fake
|
||||
@@ -57,11 +57,13 @@ jobs:
|
||||
|
||||
- if: github.event_name == 'release' && github.event.action == 'published'
|
||||
name: Publish artifacts on releases
|
||||
uses: Roang-zero1/github-upload-release-artifacts-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
args: bin/zot*
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: bin/zot*
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
file_glob: true
|
||||
|
||||
push-image:
|
||||
if: github.event_name == 'release' && github.event.action== 'published'
|
||||
|
||||
Reference in New Issue
Block a user