From d2d17049b5e82b497c44b6b4a2a461917eaed4bb Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 3 Oct 2023 08:45:56 +0200 Subject: [PATCH] github: move login to ghcr.io on top [skip ci] --- .github/workflows/alpine.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml index afddd299f74..33f4dc08884 100644 --- a/.github/workflows/alpine.yml +++ b/.github/workflows/alpine.yml @@ -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: | @@ -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: |