Skip to content

test defaults

test defaults #191

Workflow file for this run

on:
push:
branches:
- 'main'
name: Build 🛢️ container
jobs:
build_job:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
attestations: write
steps:
- name: cut v from tag
env:
TAG: ${{ github.ref_name }}
id: split
run: echo "tag=${TAG:1}" >> $GITHUB_OUTPUT
- name: Build container
uses: rwaffen/gha-build-and-publish-a-container@sbom
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
tags: |
ghcr.io/${{ github.repository }}:${{ steps.split.outputs.tag }}
ghcr.io/${{ github.repository }}:latest