Always push

This commit is contained in:
Greyscale 2024-02-20 20:35:08 +01:00
parent 95b7de9c8b
commit 0f88405a10
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
16 changed files with 16 additions and 101 deletions

View file

@ -18,9 +18,6 @@ concurrency:
group: bouncer-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
bouncer-build:
name: Build Bouncer
@ -59,14 +56,12 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -13,9 +13,6 @@ on:
- "laravel/**"
- ".github/workflows/laravel.yml"
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
laravel-build:
name: "Build: Laravel Container"
@ -38,14 +35,12 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -58,7 +53,7 @@ jobs:
context: laravel
platforms: ${{ !env.ACT && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
build-args: |
PHP_VERSION=${{ matrix.version }}
tags: |
@ -76,14 +71,12 @@ jobs:
needs: [laravel-build]
steps:
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -14,9 +14,6 @@ on:
- mariadb/**
- .github/workflows/mariadb.yml
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
mariadb-build:
name: "Build"
@ -45,14 +42,12 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -65,7 +60,7 @@ jobs:
context: mariadb
platforms: ${{ env.ACT && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
pull: true
push: ${{ env.should_push }}
push: true
tags: |
benzine/mariadb:${{ matrix.version }}
ghcr.io/benzine-framework/mariadb:${{ matrix.version }}

View file

@ -70,14 +70,12 @@ jobs:
- uses: docker/setup-buildx-action@v3
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -151,14 +149,12 @@ jobs:
- uses: docker/setup-buildx-action@v3
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -219,14 +215,12 @@ jobs:
- "ghcr.io/benzine-framework/marshall"
steps:
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -14,9 +14,6 @@ on:
- mitm-proxy/**
- .github/workflows/mitm-proxy.yml
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
mitmproxy-build:
name: "MITM proxy with Healthchecks"
@ -74,14 +71,12 @@ jobs:
mitm-proxy
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -100,9 +95,9 @@ jobs:
BUILD_DATE=${{ github.event.repository.pushed_at }}
platforms: ${{ (!env.ACT && !(startsWith('6.',matrix.mitmproxy) || startsWith('5.', matrix.mitmproxy))) && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
pull: true
push: ${{ env.should_push }}
push: true
tags: |
${{ format('benzine/mitmproxy:{0}', matrix.mitmproxy) }}
${{ env.should_push && format('ghcr.io/benzine-framework/mitmproxy:{0}', matrix.mitmproxy) }}
${{ format('ghcr.io/benzine-framework/mitmproxy:{0}', matrix.mitmproxy) }}
cache-from: ${{ !env.ACT && 'type=gha' || '' }}
cache-to: ${{ !env.ACT && 'type=gha,mode=max' || '' }}

View file

@ -8,9 +8,6 @@ on:
workflow_call:
workflow_dispatch:
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
mqtt-build:
name: "Build"
@ -38,14 +35,12 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -58,7 +53,7 @@ jobs:
context: mqtt
platforms: linux/amd64,linux/arm64
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: |
gone/mqtt:${{ matrix.version }}${{ matrix.openssl }}
benzine/mqtt:${{ matrix.version }}${{ matrix.openssl }}

View file

@ -12,9 +12,6 @@ concurrency:
group: mysql-proxy-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
mysql-proxy-build:
name: "Build"
@ -30,14 +27,12 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -57,7 +52,7 @@ jobs:
target: mysql-proxy
platforms: ${{ !env.ACT && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: |
${{ !env.ACT && 'benzine/mysql-proxy:latest' || '' }}
${{ !env.ACT && 'ghcr.io/benzine-framework/mysql-proxy:latest' || 'ghcr.io/benzine-framework/mysql-proxy:devel' }}

View file

@ -12,9 +12,6 @@ concurrency:
group: nodejs-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
node-flavours-build:
name: "Build"
@ -44,14 +41,12 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -66,7 +61,7 @@ jobs:
target: nodejs
platforms: linux/amd64,linux/arm64
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: |
gone/node:${{ matrix.node }}-${{ matrix.yarn }}
benzine/node:${{ matrix.node }}-${{ matrix.yarn }}

View file

@ -14,9 +14,6 @@ on:
- "octoprint/**"
- ".github/workflows/octoprint.yml"
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
octoprint-build:
name: "Bake Octoprint"
@ -37,7 +34,7 @@ jobs:
target: octoprint
platforms: linux/amd64,linux/arm64,linux/arm/v7
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: matthewbaggett/octoprint:latest
octoprint-mjpg-build:
@ -48,14 +45,12 @@ jobs:
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -68,5 +63,5 @@ jobs:
target: octoprint-mjpg-streamer
platforms: linux/amd64,linux/arm64,linux/arm/v7
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: matthewbaggett/octoprint:mjpg-streamer-yu12

View file

@ -14,9 +14,6 @@ permissions:
contents: read
packages: write
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
perl-build:
name: "Build Perl"
@ -39,14 +36,12 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -8,9 +8,6 @@ permissions:
contents: read
packages: write
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
php-flavours-build:
name: "Build PHP Flavours"
@ -74,14 +71,12 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -99,7 +94,7 @@ jobs:
target: php-${{ matrix.variant }}
platforms: ${{ !env.ACT && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: |
ghcr.io/benzine-framework/php:${{ matrix.variant }}-${{ matrix.version }}
gone/php:${{ matrix.variant }}-${{ matrix.version }}
@ -141,14 +136,12 @@ jobs:
- "ghcr.io/benzine-framework/php"
steps:
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io

View file

@ -14,9 +14,6 @@ on:
- postgres/**
- .github/workflows/postgres.yml
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
postgres-build:
name: "Build"
@ -71,14 +68,12 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -105,7 +100,7 @@ jobs:
context: postgres
platforms: ${{ env.ACT && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
pull: true
push: ${{ env.should_push }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}

View file

@ -8,9 +8,6 @@ on:
workflow_call:
workflow_dispatch:
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
redis-build:
name: "Build"
@ -51,14 +48,12 @@ jobs:
redis
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -75,9 +70,9 @@ jobs:
HEALTH_INTERVAL=10s
platforms: ${{ !env.ACT && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: |
${{ format('ghcr.io/benzine-framework/redis:{0}', matrix.redis) }}
${{ env.should_push && format('benzine/redis:{0}',matrix.redis) || '' }}
${{ format('benzine/redis:{0}',matrix.redis) || '' }}
cache-from: ${{ !env.ACT && 'type=gha' || '' }}
cache-to: ${{ !env.ACT && 'type=gha,mode=max' || '' }}

View file

@ -18,9 +18,6 @@ concurrency:
group: ${{ github.workflow }}-s3db-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
s3db-build:
name: Build S3DB
@ -59,14 +56,12 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -98,7 +93,7 @@ jobs:
target: ${{ matrix.database }}
file: s3db/Dockerfile.${{ matrix.database }}
platforms: ${{ !env.ACT && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
push: ${{ env.should_push }}
push: true
tags: |
ghcr.io/benzine-framework/s3db:${{ matrix.database }}-${{ matrix.version }}
benzine/s3db:${{ matrix.database }}-${{ matrix.version }}

View file

@ -8,9 +8,6 @@ on:
workflow_call:
workflow_dispatch:
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
swarm-monitor-build:
name: Build Swarm Monitor
@ -39,14 +36,12 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -78,7 +73,7 @@ jobs:
target: swarm-${{ matrix.component }}
platforms: ${{ !env.ACT && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: |
matthewbaggett/swarm-agent:${{ matrix.component }}
cache-from: ${{ !env.ACT && 'type=gha' || 'type=local,src=/tmp' }}

View file

@ -14,9 +14,6 @@ on:
- "wordpress/**"
- ".github/workflows/wordpress.yml"
env:
should_push: ${{ github.ref == 'refs/heads/main' }}
jobs:
wordpress-build:
name: "Bake Wordpress Container"
@ -29,14 +26,12 @@ jobs:
- uses: docker/setup-buildx-action@v2
- name: "Setup: Login to Docker Hub"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
username: matthewbaggett
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: "Setup: Login to GHCR"
if: ${{ env.should_push }}
uses: docker/login-action@v3
with:
registry: ghcr.io
@ -49,7 +44,7 @@ jobs:
context: wordpress
platforms: linux/amd64,linux/arm64
pull: true
push: ${{ env.should_push && !env.ACT }}
push: true
tags: |
matthewbaggett/wordpress
build-contexts: |