Skip to content

Commit

Permalink
rearrange CI steps
Browse files Browse the repository at this point in the history
  • Loading branch information
aine-etke committed Sep 11, 2024
1 parent 541c09d commit 7291ccd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Check if Docker image exists
id: check
run: |
Expand All @@ -28,13 +34,6 @@ jobs:
run: |
echo "output: ${{ steps.check.outputs }}"
echo "exists: ${{ steps.check.outputs.exists }}"
- name: Login to ghcr.io
if: ${{ steps.check.outputs.exists == 'no' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
if: ${{ steps.check.outputs.exists == 'no' }}
id: meta
Expand Down

0 comments on commit 7291ccd

Please sign in to comment.