Promote Docker image to latest #9
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: Promote Docker image to latest | |
on: | |
workflow_dispatch: | |
jobs: | |
dockerize_and_push: | |
name: Tag latest and push to GHCR | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Tag image | |
run: docker buildx imagetools create ghcr.io/palladians/supso:$(git rev-parse --short HEAD) --tag ghcr.io/palladians/supso:latest |