Gitea Actions: Publish to GHCR
Some checks failed
Build & Publish to GHCR / build (push) Has been cancelled

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

View File

@ -0,0 +1,24 @@
name: Build & Publish to GHCR
on:
push:
branches:
- main
env:
IMAGE_NAME: app-notifications-backend-api
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