2
0
Эх сурвалжийг харах

github: move login to ghcr.io on top [skip ci]

Victor Seva 1 жил өмнө
parent
commit
d2d17049b5

+ 8 - 8
.github/workflows/alpine.yml

@@ -31,6 +31,14 @@ jobs:
       if: ${{ github.event_name == 'schedule' }}
       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
       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
     - name: Compile Kamailio source
       if: ${{ steps.should_run.outputs.should_run != 'false' }}
       if: ${{ steps.should_run.outputs.should_run != 'false' }}
       run: |
       run: |
@@ -93,14 +101,6 @@ jobs:
           suffix=-debug
           suffix=-debug
           latest=false
           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
     - name: temporal workarround for "-alpine" and "-debug" builds
       if: ${{ steps.should_run.outputs.should_run != 'false' }}
       if: ${{ steps.should_run.outputs.should_run != 'false' }}
       run: |
       run: |