File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - main
5
7
tags :
6
8
- v*
7
9
pull_request : {}
63
65
matrix :
64
66
arch :
65
67
- amd64
66
- - arm64
67
68
steps :
68
69
- name : Setup QEMU
69
70
uses : docker/setup-qemu-action@v3
@@ -107,6 +108,9 @@ jobs:
107
108
- name : Build Package
108
109
run : ./crossplane xpkg build --package-file=${{ matrix.arch }}.xpkg --package-root=package/ --embed-runtime-image-tarball=runtime-${{ matrix.arch }}.tar
109
110
110
- - name : Upload Package
111
- if : ${{ steps.release.outputs.release_created }}
112
- run : ./crossplane xpkg push -f ${{ matrix.arch }}.xpkg ghcr.io/statnett/function-s3-user-arn:${{ steps.release.outputs.tag_name }}
111
+ - name : Extract version from tag
112
+ run : echo "TAG=$(basename $GITHUB_REF_NAME)" >> $GITHUB_ENV
113
+
114
+ - name : Push Crossplane Package
115
+ if : startsWith(github.ref, 'refs/tags/v')
116
+ run : ./crossplane xpkg push -f ${{ matrix.arch }}.xpkg ghcr.io/statnett/function-s3-user-arn-${{ matrix.arch }}:${{ env.TAG }}
You can’t perform that action at this time.
0 commit comments