Gitea Actions: Publish to GHCR
All checks were successful
Build & Publish to GHCR / build (push) Successful in 51s

This commit is contained in:
Florian 2025-10-09 14:40:38 +02:00
parent 637f51f0be
commit a9c8007259

View File

@ -0,0 +1,24 @@
name: Build & Publish to GHCR
on:
push:
branches:
- main
env:
IMAGE_NAME: app-notifications-backend-api-internal
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to GHCR
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u ${{ secrets.GHCR_USERNAME }} --password-stdin
- name: Build and Push Docker Image
run: |
docker build -t ghcr.io/gansejunge/${IMAGE_NAME}:1 .
docker push ghcr.io/gansejunge/${IMAGE_NAME}:1