Skip to content

Commit

Permalink
push to ghcr anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 14, 2023
1 parent 693237e commit 9dc6218
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
run: TAG=newly-baked python -m pytest -s tests

- name: Docker meta 📝
if: always()
id: meta
uses: docker/metadata-action@v4
with:
Expand All @@ -64,13 +65,15 @@ jobs:
type=match,pattern=v(\d+\.\d+.\d+),group=1
type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Login to Container Registry 🔑
if: always()
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Set tags for image and push 🏷️📤💾
if: always()
run: |
declare -a arr=(${{ steps.meta.outputs.tags }})
for tag in "${arr[@]}"; do
Expand Down

0 comments on commit 9dc6218

Please sign in to comment.