Potentially this should build.
This commit is contained in:
parent
5ddc39b9e9
commit
f228f4adc2
3 changed files with 11 additions and 7 deletions
12
.github/workflows/docker.build.yml
vendored
12
.github/workflows/docker.build.yml
vendored
|
@ -8,6 +8,10 @@ on:
|
|||
workflow_call:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
PLATFORMS: ${{ vars.PLATFORMS }}
|
||||
DOCKER_IMAGE: ghcr.io/${{ github.repository_owner }}/${{ github.repository_name }}
|
||||
|
||||
jobs:
|
||||
docker-build:
|
||||
name: Build Swarm Load Balancer
|
||||
|
@ -23,7 +27,7 @@ jobs:
|
|||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
target: bouncer
|
||||
target: loadbalancer
|
||||
build-args: |
|
||||
GIT_SHA=${{ github.sha }}
|
||||
GIT_BUILD_ID=${{ github.ref_name }}
|
||||
|
@ -33,8 +37,8 @@ jobs:
|
|||
pull: true
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
tags: |
|
||||
${{ vars.LOADBALANCER_DOCKER_IMAGE }}:latest
|
||||
${{ vars.LOADBALANCER_DOCKER_IMAGE }}:built-at-${{ env.ATOM }}
|
||||
${{ vars.LOADBALANCER_DOCKER_IMAGE }}:sha-${{ github.sha }}
|
||||
${{ env.DOCKER_IMAGE }}:latest
|
||||
${{ env.DOCKER_IMAGE }}:date-${{ env.DATE }}
|
||||
${{ env.DOCKER_IMAGE }}:sha-${{ github.sha }}
|
||||
cache-from: ${{ env.DOCKER_CACHE_FROM }}
|
||||
cache-to: ${{ env.DOCKER_CACHE_TO }}
|
||||
|
|
4
.github/workflows/docker.clean.yml
vendored
4
.github/workflows/docker.clean.yml
vendored
|
@ -36,9 +36,9 @@ jobs:
|
|||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
organization: ${{ github.repository_owner }}
|
||||
container: bouncer
|
||||
container: ${{ github.repository_name }}
|
||||
dry-run: true
|
||||
keep-younger-than: 30 # days
|
||||
keep-younger-than: 90 # days
|
||||
keep-last: 2
|
||||
prune-untagged: true
|
||||
keep-tags-regexes: |
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# checkov:skip=CKV_DOCKER_3 I don't have time for rootless
|
||||
FROM ghcr.io/benzine-framework/php:cli-8.2 AS bouncer
|
||||
FROM ghcr.io/benzine-framework/php:cli-8.2 AS loadbalancer
|
||||
|
||||
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \
|
||||
org.label-schema.vcs-url="https://github.com/benzine-framework/docker-swarm-loadbalancer" \
|
||||
|
|
Loading…
Reference in a new issue