updated base image and actions #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR CI Image Build | |
on: pull_request | |
jobs: | |
build-image: | |
name: Build Docker and push image | |
runs-on: ubuntu-latest | |
env: | |
GHCR_PAT: ${{secrets.GHCR_PAT}} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
ghcr.io/digiblink/alpine-nginx-php74-pdf | |
tags: | | |
type=sha,prefix=pr- | |
flavor: | | |
latest=false | |
prefix= | |
suffix= | |
labels: | | |
org.opencontainers.image.vendor=digiBlink | |
- name: Login to Github Packages | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GHCR_PAT }} | |
- name: Build image and push to GitHub Container Registry | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |