Skip to content

Fix: Use correct tag #26

Fix: Use correct tag

Fix: Use correct tag #26

Workflow file for this run

---
name: CI Workflow
on: push
permissions:
contents: read
jobs:
docker-publish:
defaults:
run:
shell: bash
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
show-progress: false
- name: Log into registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Build
run: |
docker buildx build \
--no-cache \
--pull \
--tag ghcr.io/${GITHUB_REPOSITORY,,}:$(awk -F: '/FROM.*argocd/{print $2}' Dockerfile | cut -d '@' -f 1) \
.
- name: Docker Push
run: |
docker push ghcr.io/${GITHUB_REPOSITORY,,}:$(awk -F: '/FROM.*argocd/{print $2}' Dockerfile | cut -d '@' -f 1)
if: ${{ github.ref == 'refs/heads/master' }}
...