Skip to content

Merge pull request #3 from goalgorilla/ronaldtebrake-patch-1 #4

Merge pull request #3 from goalgorilla/ronaldtebrake-patch-1

Merge pull request #3 from goalgorilla/ronaldtebrake-patch-1 #4

name: Tag and release Tugboat PHP image
on:
push:
paths:
- "tugboat-php/**"
- ".github/workflows/build-tugboat-php"
branches:
- 'main'
env:
SUBDIRECTORY: tugboat-php
REGISTRY: ghcr.io
IMAGE_NAME: goalgorilla/ci-tugboat-php
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
version:
- 8.0-apache
- 8.1-apache
- 8.2-apache
# There should be no need to edit below this line.
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
build-args: VERSION=${{ matrix.version }}
context: "{{defaultContext}}:${{ env.SUBDIRECTORY }}"
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.version }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}