Push image to GHCR
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m52s Details

This commit is contained in:
Stefan Forstenlechner 2024-09-03 14:29:29 +02:00
parent 4eaf38d4bb
commit fd89caac7b
1 changed files with 10 additions and 0 deletions

View File

@ -9,14 +9,23 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: gitea.forstenlechner.dev
username: stefan
password: ${{ secrets.ACTION_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USER }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
@ -24,3 +33,4 @@ jobs:
push: true
tags: |
gitea.forstenlechner.dev/stefan/simple-picture-gallery:latest
ghcr.io/t-h-e/simple-picture-gallery:latest