Skip to content

Build and deploy Bay images #25

Build and deploy Bay images

Build and deploy Bay images #25

Workflow file for this run

name: build-deploy-bay-images
run-name: Build and deploy Bay images
on:
push
env:
REGISTRY: ghcr.io
#defaults:
# run:
# working-directory: ${{ github.workspace }}
jobs:
buildx:
runs-on: ubuntu-latest
strategy:
matrix:
# images: [ci-builder, php-cli, mariadb, nginx, node, php-fpm, elasticsearch, mailhog, clamav, ripple-static]
images: [ci-builder, node]
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v2
- name: Login to registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.images }}
tags: |
type=ref,event=branch
- name: Build and push the images
uses: docker/[email protected]
with:
push: true
files: |
./gh-actions-bake.hcl
${{ steps.meta.outputs.bake-file }}
# Target the default group - probably unnecessary.
targets: ${{ matrix.images }}