Skip to content

0.0.8

0.0.8 #7

Workflow file for this run

name: release
on:
release:
types: [created]
permissions:
contents: read
packages: write # required to push the image to GHCR
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }} # ghcr.io/target/pull-request-code-coverage
jobs:
docker:
environment: deployment
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} # built-in token, no extra secrets needed
- name: Docker Build and Push
id: docker_build
uses: docker/build-push-action@v6
with:
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}