Skip to content

Workflow file for this run

name: glove-build-env image
on:
push:
paths:
- 'glove-build-env/**'
- '.github/workflows/glove-build-env.yml'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/glove-build-env
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/docker/metadata-action
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: type=sha
labels: |
org.opencontainers.image.description=Reproducible Glove build environment
# https://github.com/docker/build-push-action
- name: Build and push image
id: push
uses: docker/build-push-action@v6
with:
context: glove-build-env
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}