Added gitea actions for testing
Some checks failed
Build and Push Server Docker Image / build-server (push) Failing after 2m31s
Some checks failed
Build and Push Server Docker Image / build-server (push) Failing after 2m31s
This commit is contained in:
34
.gitea/workflows/build-docker-image.yml
Normal file
34
.gitea/workflows/build-docker-image.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
# .github/workflows/build-server.yml
|
||||
name: Build and Push Server Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-server:
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
steps:
|
||||
# 1. Check out the repo
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# 2. Log in to your container registry
|
||||
- name: Log in to registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ secrets.REGISTRY_URL }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
# 3. Build & push the server image, using remote cache
|
||||
- name: Build and push server image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: VirtualDDNSRouter.Server
|
||||
file: VirtualDDNSRouter.Server/Dockerfile
|
||||
push: true
|
||||
tags: ${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest-server
|
||||
cache-from: type=registry,ref=${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:buildcache
|
||||
cache-to: type=registry,ref=${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:buildcache,mode=max
|
Reference in New Issue
Block a user