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