Gitea Actions: Publish to GHCR
Some checks failed
Build & Publish to GHCR / build (push) Failing after 11s

This commit is contained in:
Florian 2025-10-09 14:22:16 +02:00
parent ed0dcfeadb
commit f5b16932c7

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.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --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