Skip to content

do it yourself

do it yourself #165

Workflow file for this run

on:
push:
branches:
- 'main'
name: Build 🛢️ container
jobs:
build_job:
runs-on: ubuntu-latest
permissions:
contents: read
packages: 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@debug_publish
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}
tags: |
ghcr.io/${{ github.repository }}:${{ steps.split.outputs.tag }}
ghcr.io/${{ github.repository }}:latest