Fix build process
This commit is contained in:
parent
83d501b195
commit
3bfb3cfbad
1 changed files with 38 additions and 12 deletions
50
.github/workflows/bouncer.yml
vendored
50
.github/workflows/bouncer.yml
vendored
|
|
@ -21,7 +21,8 @@ jobs:
|
|||
name: "Bake Bouncer Container"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: date
|
||||
- name: "Setup: Get Date"
|
||||
id: date
|
||||
run: |
|
||||
{
|
||||
echo "datetime=$(date +'%Y-%m-%d %H:%M:%S')"
|
||||
|
|
@ -29,25 +30,50 @@ jobs:
|
|||
echo "time=$(date +'%H:%M:%S')"
|
||||
echo "container_build_datetime=$(date -u +'%Y-%m-%dT%H:%M:%S.%3NZ')"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/login-action@v2
|
||||
name: Login to Docker Hub
|
||||
|
||||
- name: "Setup: PHP"
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.1
|
||||
env:
|
||||
runner: self-hosted
|
||||
|
||||
- name: "Setup: Setup QEMU"
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: "Setup: Setup Docker Buildx"
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: "Setup: Checkout Source"
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: "Setup: Login to Docker Hub"
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||
- uses: docker/login-action@v2
|
||||
name: Login to GHCR
|
||||
|
||||
- name: "Setup: Login to GHCR"
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ secrets.GHCR_USERNAME }}
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
- uses: php-actions/composer@v6
|
||||
|
||||
- name: "Setup: Configure Cache"
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
working_dir: bouncer
|
||||
- uses: docker/build-push-action@v3
|
||||
name: Build & Push
|
||||
path: bouncer
|
||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-composer-
|
||||
|
||||
- name: "Dependencies: Composer Install"
|
||||
working-directory: bouncer
|
||||
run: composer install --ignore-platform-reqs
|
||||
|
||||
- name: "Build: Build & Push image to GHCR & Docker Hub"
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: bouncer
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
|
|
|||
Loading…
Reference in a new issue