Skip to content

Update Dockerfile

Update Dockerfile #2

Workflow file for this run

name: Publish image to GHCR
on:
workflow_dispatch:
push:
branches:
- main
- ms-publish-docker
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- name: Log into GitHub Container Registry
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
with:
registry: ghcr.io/guardian
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and push container image
uses: docker/build-push-action@15560696de535e4014efeff63c48f16952e52dd1 # v6.2.0
with:
file: ./Dockerfile
push: true
tags: ghcr.io/guardian/actions-prnouncer:latest
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: true