Skip to content

Build Tag

Build Tag #2

Workflow file for this run

name: Build Tag
on:
workflow_run:
workflows: ["Test"]
types:
- completed
jobs:
build-tag:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_commit.message, 'tag:') }}
steps:
- uses: actions/checkout@v2
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and Push Docker image
uses: docker/[email protected]
with:
context: .
push: true
tags: ghcr.io/salopensource/sal:${{ github.ref_name }}