Files
morthimer 626757d0e8
All checks were successful
Build morthimer/caddy-homelab image / lint (push) Successful in 10s
Build morthimer/caddy-homelab image / build (push) Successful in 1m47s
bump: update caddy-docker-proxy to 2.10.0
2025-06-22 20:26:56 +02:00

39 lines
1.1 KiB
YAML

name: Build morthimer/caddy-homelab image
on: [push]
env:
CADDY_VERSION: 2.10.0
CADDY_DOCKER_PROXY_VERSION: 2.10.0
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Lint Dockerfile with Hadolint
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Repository login
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
push: true
tags: |
${{ secrets.DOCKER_REGISTRY }}/${{ gitea.repository }}:latest
${{ secrets.DOCKER_REGISTRY }}/${{ gitea.repository }}:${{ env.CADDY_VERSION }}-${{ env.CADDY_DOCKER_PROXY_VERSION }}
build-args: |
WEBSERVER_VERSION=${{ env.CADDY_VERSION }}
DOCKER_PROXY_VERSION=${{ env.CADDY_DOCKER_PROXY_VERSION }}