Skip to content

Commit

Permalink
feat(app): add promote docker image to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk committed Feb 11, 2024
1 parent bdbdd8b commit 69bcbb1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
File renamed without changes.
21 changes: 21 additions & 0 deletions .github/workflows/app_promote_to_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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 tag ghcr.io/palladians/supso:$(git rev-parse --short HEAD) ghcr.io/palladians/supso:latest
- name: Push to GHCR
run: docker push ghcr.io/palladians/supso:latest

0 comments on commit 69bcbb1

Please sign in to comment.