Always push
This commit is contained in:
parent
95b7de9c8b
commit
0f88405a10
16 changed files with 16 additions and 101 deletions
5
.github/workflows/bouncer.yml
vendored
5
.github/workflows/bouncer.yml
vendored
|
@ -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
|
||||
|
|
9
.github/workflows/laravel.yml
vendored
9
.github/workflows/laravel.yml
vendored
|
@ -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
|
||||
|
|
7
.github/workflows/mariadb.yml
vendored
7
.github/workflows/mariadb.yml
vendored
|
@ -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 }}
|
||||
|
|
6
.github/workflows/marshall.yml
vendored
6
.github/workflows/marshall.yml
vendored
|
@ -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
|
||||
|
|
9
.github/workflows/mitm-proxy.yml
vendored
9
.github/workflows/mitm-proxy.yml
vendored
|
@ -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' || '' }}
|
||||
|
|
7
.github/workflows/mqtt.yml
vendored
7
.github/workflows/mqtt.yml
vendored
|
@ -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 }}
|
||||
|
|
7
.github/workflows/mysql-proxy.yml
vendored
7
.github/workflows/mysql-proxy.yml
vendored
|
@ -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' }}
|
||||
|
|
7
.github/workflows/node.yml
vendored
7
.github/workflows/node.yml
vendored
|
@ -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 }}
|
||||
|
|
9
.github/workflows/octoprint.yml
vendored
9
.github/workflows/octoprint.yml
vendored
|
@ -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
|
||||
|
|
5
.github/workflows/perl.yml
vendored
5
.github/workflows/perl.yml
vendored
|
@ -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
|
||||
|
|
9
.github/workflows/php.yml
vendored
9
.github/workflows/php.yml
vendored
|
@ -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
|
||||
|
|
7
.github/workflows/postgres.yml
vendored
7
.github/workflows/postgres.yml
vendored
|
@ -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 }}
|
||||
|
|
9
.github/workflows/redis.yml
vendored
9
.github/workflows/redis.yml
vendored
|
@ -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' || '' }}
|
||||
|
|
7
.github/workflows/s3db.yml
vendored
7
.github/workflows/s3db.yml
vendored
|
@ -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 }}
|
||||
|
|
7
.github/workflows/swarm-monitor.yml
vendored
7
.github/workflows/swarm-monitor.yml
vendored
|
@ -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' }}
|
||||
|
|
7
.github/workflows/wordpress.yml
vendored
7
.github/workflows/wordpress.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Reference in a new issue