Skip to content

Commit

Permalink
Fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignasi Fosch committed Dec 28, 2024
1 parent 53f2e44 commit 9a31364
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ jobs:
- name: Get tag name
id: tag_name
run: |
echo "name=SOURCE_TAG::${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT}
echo "tag=${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT}
- name: Build and publish Docker image
run: |
echo ${{ steps.vars.outputs.tag }}
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u EDyO --password-stdin
docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }} appu/.
docker push ghcr.io/edyo/appu:${{ steps.tag_name.outputs.SOURCE_TAG }}
docker build --pull --rm -f "appu/Dockerfile" -t ghcr.io/edyo/appu:${{ steps.vars.outputs.tag }} appu/.
docker push ghcr.io/edyo/appu:${{ steps.vars.outputs.tag }}
release:
needs:
- docker
Expand All @@ -39,9 +40,11 @@ jobs:
- name: Build
run: |
scripts/build.sh ${{ matrix.destination_os }} amd64
- name: Get the version
id: get_version
run: echo "name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)" >> ${GITHUB_OUTPUT}
- name: Get tag name
id: tag_name
run: |
echo "tag=${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT}
- name: Release built binaries
run: "echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token \ngh release upload ${{ steps.get_version.outputs.VERSION }} build/*"

run: |
echo ${{ secrets.TEST_TOKEN }} | gh auth login --with-token
gh release upload ${{ steps.vars.outputs.tag }} build/*

0 comments on commit 9a31364

Please sign in to comment.