Skip to content

Merge pull request #36 from cbdq-io/hotfix/0.1.1 #2

Merge pull request #36 from cbdq-io/hotfix/0.1.1

Merge pull request #36 from cbdq-io/hotfix/0.1.1 #2

Workflow file for this run

---
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 }}