Skip to content

Pin Rust version, update debian (#32) #8

Pin Rust version, update debian (#32)

Pin Rust version, update debian (#32) #8

Workflow file for this run

name: Publish image to GHCR
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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,ghcr.io/guardian/actions-prnouncer:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false