Update .gitea/workflows/build.yaml
Some checks failed
Build morthimer/caddy-homelab image / lint (push) Successful in 7s
Build morthimer/caddy-homelab image / build (push) Failing after 7s

This commit is contained in:
2024-05-11 19:55:10 +02:00
parent 836451c946
commit a1c7229313

View File

@@ -1,9 +1,8 @@
name: Build morthimer/caddy-homelab image
run-name: ${{ gitea.actor }} is building a new image
on: [push]
env:
REPOSITORY: git.int.morthimer.fr:8443
REGISTRY: git.int.morthimer.fr:8443
CADDY_VERSION: 2.7.6
CADDY_DOCKER_PROXY_VERSION: 2.8.11
@@ -25,7 +24,7 @@ jobs:
- name: Repository login
uses: docker/login-action@v3
with:
registry: $REPOSITORY
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -33,7 +32,7 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: $REPOSITORY/${{ gitea.repository }}:latest
tags: ${{ env.REGISTRY }}/${{ gitea.repository }}:latest
build-args: |
WEBSERVER_VERSION=$CADDY_VERSION
DOCKER_PROXY_VERSION=$CADDY_DOCKER_PROXY_VERSION
WEBSERVER_VERSION=${{ env.CADDY_VERSION }}
DOCKER_PROXY_VERSION=${{ env.CADDY_DOCKER_PROXY_VERSION }}