Merge pull request #36 from cbdq-io/hotfix/0.1.1 #2
Workflow file for this run
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
--- | |
name: CD Tag | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
CD: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Display Tag Information | |
run: | | |
echo "Full reference: ${{ github.ref }}" | |
echo "Tag name: ${{ github.ref_name }}" | |
echo "Repository: ${{ github.repository }}" | |
- name: Build Artefacts | |
run: make build | |
- name: Build Docker Image | |
run: docker build -t ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }} . | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push Docker Image | |
run: docker push ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }} |