فهرست منبع

github: update checkout to v3

* deprecated output command
  https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Victor Seva 2 سال پیش
والد
کامیت
4065fd3900
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      .github/workflows/dockerhub.yml

+ 6 - 4
.github/workflows/dockerhub.yml

@@ -11,19 +11,19 @@ jobs:
   pre-docker:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v3
       - id: set-matrix
         run: |
           sudo apt-get install jq
-          echo "::set-output name=matrix::$(bash get-all-dist.sh)"
+          echo "matrix=$(bash get-all-dist.sh)" >> $GITHUB_OUTPUT
     outputs:
-      matrix: ${{ steps.set-matrix.outputs.matrix }}
+      dist: ${{ steps.set-matrix.outputs.matrix }}
   docker:
     needs: pre-docker
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        dist: ${{fromJson(needs.pre-docker.outputs.matrix)}}
+        dist: ${{fromJson(needs.pre-docker.outputs.dist)}}
     steps:
       - name: Set up QEMU
         uses: docker/setup-qemu-action@v2
@@ -38,5 +38,7 @@ jobs:
         uses: docker/build-push-action@v3
         with:
           context: "{{defaultContext}}:${{ matrix.dist }}"
+          # we need to build for arm64 first
+          # platforms: linux/amd64,linux/arm64
           push: true
           tags: kamailio/kamailio:${{ github.ref_name }}-${{ matrix.dist }}