23.12.1 #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: docker login | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: docker tag | |
run: | | |
docker pull ghcr.io/${{ github.repository }}:main | |
docker tag ghcr.io/${{ github.repository }}:main ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} | |
docker push ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} |