File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,12 @@ jobs:
1010 steps :
1111 - name : Checkout
1212 uses : actions/checkout@v2
13- - name : Get tag name
14- id : tag_name
15- run : |
16- echo "name=SOURCE_TAG::${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT}
1713 - name : Build and publish Docker image
1814 run : |
15+ echo ${{ steps.vars.outputs.tag }}
1916 echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u EDyO --password-stdin
20- docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }} appu/.
21- docker push ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }}
17+ docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ github.ref_name }} appu/.
18+ docker push ghcr.io/edyo/appu:${{ github.ref_name }}
2219 release :
2320 needs :
2421 - docker
3936 - name : Build
4037 run : |
4138 scripts/build.sh ${{ matrix.destination_os }} amd64
42- - name : Get the version
43- id : get_version
44- run : echo "name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)" >> ${GITHUB_OUTPUT}
4539 - name : Release built binaries
46- run : " echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token \n gh release upload ${{ steps.get_version.outputs.VERSION }} build/*"
47-
40+ run : |
41+ echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token
42+ gh release list | grep -E "^${{ github.ref_name }}$" || gh release create ${{ github.ref_name }}
43+ gh release upload ${{ github.ref_name }} build/*
You can’t perform that action at this time.
0 commit comments