Skip to content

imp - Build workflows ACTUALLY use scripts #5

imp - Build workflows ACTUALLY use scripts

imp - Build workflows ACTUALLY use scripts #5

Workflow file for this run

name: Push to Docker
on:
push:
tags:
- 'v0.1.*'
jobs:
build:
runs-on: ubuntu-24.04
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Prepare Docker (auth)
uses: docker/login-action@master
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@master
with:
images: eofla/nitrocid
- name: Build and push Docker image
id: push
uses: docker/build-push-action@master
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: eofla/nitrocid
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true