gitea actions
Build and Push Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
2026-06-11 19:29:58 +01:00
parent 926c578df8
commit 3ca052640a
2 changed files with 33 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
./CalendarReminder.Api/appsettings.json
./CalendarReminder.Api/appsettings.Development.json
+31
View File
@@ -0,0 +1,31 @@
name: Build and Push Docker Image
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/calendarreminder-app:latest
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/calendarreminder-app:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/calendarreminder-app:buildcache,mode=max