Skip to content

Commit

Permalink
github: move login to ghcr.io on top [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed Oct 3, 2023
1 parent 2bf0611 commit d2d1704
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ jobs:
if: ${{ github.event_name == 'schedule' }}
run: test -z "$(git rev-list --after='24 hours' ${{ github.sha }})" && echo "should_run=false" >> $GITHUB_OUTPUT || echo "should_run=true" >> $GITHUB_OUTPUT

- name: Login to GitHub Container Registry
if: ${{ steps.should_run.outputs.should_run != 'false' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Compile Kamailio source
if: ${{ steps.should_run.outputs.should_run != 'false' }}
run: |
Expand Down Expand Up @@ -93,14 +101,6 @@ jobs:
suffix=-debug
latest=false
- name: Login to GitHub Container Registry
if: ${{ steps.should_run.outputs.should_run != 'false' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: temporal workarround for "-alpine" and "-debug" builds
if: ${{ steps.should_run.outputs.should_run != 'false' }}
run: |
Expand Down

0 comments on commit d2d1704

Please sign in to comment.