Skip to content

Commit

Permalink
Add release tagging of docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
isZumpo committed May 8, 2024
1 parent 6d021b4 commit 34a30ad
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,24 @@ jobs:
sha256sum: false
compress_assets: auto
build_command: make ${{ matrix.goos }}_${{ matrix.goarch }}
extra_files: libtensorflowlite_c.so
extra_files: libtensorflowlite_c.so

docker-tagging:
runs-on: ubuntu-20.04
steps:
- name: 'Login to GitHub Container Registry'
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 'Generate downcase repository name'
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
- name: Tag docker image with release version
run: |
docker pull ghcr.io/${{ env.REPO }}:${{ github.sha }}
docker tag ghcr.io/${{ env.REPO }}:${{ github.sha }} ghcr.io/${{ env.REPO }}:${{ github.event.release.tag_name }}
docker tag ghcr.io/${{ env.REPO }}:${{ github.sha }} ghcr.io/${{ env.REPO }}:latest

0 comments on commit 34a30ad

Please sign in to comment.