Secrets.
This commit is contained in:
parent
8559835432
commit
406a7259e1
4 changed files with 60 additions and 15 deletions
36
.github/workflows/laravel.yml
vendored
36
.github/workflows/laravel.yml
vendored
|
|
@ -6,6 +6,12 @@ permissions:
|
|||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "laravel/**"
|
||||
- ".github/workflows/laravel.yml"
|
||||
|
||||
env:
|
||||
should_push: ${{ github.ref == 'refs/heads/main' }}
|
||||
|
|
@ -31,12 +37,21 @@ jobs:
|
|||
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
name: Login to Docker Hub
|
||||
- name: "Setup: Login to Docker Hub"
|
||||
if: ${{ env.should_push }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
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
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
|
||||
- uses: docker/build-push-action@v3
|
||||
name: Build & Push
|
||||
with:
|
||||
|
|
@ -60,12 +75,21 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: [laravel-build]
|
||||
steps:
|
||||
- uses: docker/login-action@v3
|
||||
name: Login to Docker Hub
|
||||
- name: "Setup: Login to Docker Hub"
|
||||
if: ${{ env.should_push }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
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
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
|
||||
- name: "Retag matthewbaggett/laravel:8.3 to matthewbaggett/laravel:latest"
|
||||
if: ${{ !env.ACT }}
|
||||
run: |
|
||||
|
|
|
|||
17
.github/workflows/octoprint.yml
vendored
17
.github/workflows/octoprint.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
- uses: docker/login-action@v3
|
||||
name: Login to Docker Hub
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||
- uses: docker/build-push-action@v3
|
||||
name: Build Octoprint
|
||||
|
|
@ -41,11 +41,20 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/login-action@v3
|
||||
name: Login to Docker Hub
|
||||
- name: "Setup: Login to Docker Hub"
|
||||
if: ${{ env.should_push }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
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
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
- uses: docker/build-push-action@v3
|
||||
name: Build Octoprint MJPG Streamer Variant
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/perl.yml
vendored
3
.github/workflows/perl.yml
vendored
|
|
@ -62,8 +62,7 @@ jobs:
|
|||
with:
|
||||
context: perl
|
||||
target: release
|
||||
platforms: ${{ !env.ACT && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
|
||||
pull: true
|
||||
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/benzine-framework/perl:${{ matrix.ubuntu }}
|
||||
|
|
|
|||
19
.github/workflows/wordpress.yml
vendored
19
.github/workflows/wordpress.yml
vendored
|
|
@ -17,13 +17,26 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/login-action@v3
|
||||
name: Login to Docker Hub
|
||||
|
||||
- name: "Setup: Login to Docker Hub"
|
||||
if: ${{ env.should_push }}
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
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
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
|
||||
- uses: docker/build-push-action@v3
|
||||
name: Build & Push
|
||||
with:
|
||||
|
|
|
|||
Loading…
Reference in a new issue