Merge pull request #14 from betadots/update #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |