From c8f129fe15e75c83c73e6e0dcf233bf5f533109d Mon Sep 17 00:00:00 2001 From: Paul Lorenz Date: Wed, 12 Oct 2022 15:25:31 -0400 Subject: [PATCH] Update build actions --- .github/workflows/main.yml | 28 +++++++++++++-------------- .github/workflows/push-quickstart.yml | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eb31ed197..54865dc72 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: runs-on: macos-11 steps: - name: Git Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -50,7 +50,7 @@ jobs: $(go env GOPATH)/bin/gox -cgo -os=darwin -arch=amd64 -output=$GOX_OUTPUT ./... - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: darwin-release-${{ github.run_id }} path: release/ @@ -61,7 +61,7 @@ jobs: runs-on: windows-2019 steps: - name: Git Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -81,7 +81,7 @@ jobs: $(go env GOPATH)/bin/gox -cgo -os=windows -arch=amd64 -output=$GOX_OUTPUT ./... - name: Upload artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: windows-release-${{ github.run_id }} path: release/ @@ -94,7 +94,7 @@ jobs: ziti-version: ${{ steps.get_version.outputs.ziti-version }} steps: - name: Git Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -161,7 +161,7 @@ jobs: ziti-version: ${{ steps.get_version.outputs.ziti-version }} steps: - name: Git Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -171,7 +171,7 @@ jobs: go-version: '1.19.x' - name: Install Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.7' @@ -194,19 +194,19 @@ jobs: CC=aarch64-linux-gnu-gcc $(go env GOPATH)/bin/gox -cgo -os=linux -arch=arm64 -output=$GOX_OUTPUT ./... - name: Download darwin release artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: darwin-release-${{ github.run_id }} path: release/ - name: Download windows release artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: windows-release-${{ github.run_id }} path: release/ - name: Install Jfrog CLI - uses: jfrog/setup-jfrog-cli@v1 + uses: jfrog/setup-jfrog-cli@v2 # remaining steps in job only run on the upstream repo, not forks - name: Publish @@ -255,18 +255,18 @@ jobs: - name: Set up QEMU if: github.repository_owner == 'openziti' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-v')) - uses: docker/setup-qemu-action@master + uses: docker/setup-qemu-action@v2 with: platforms: amd64,arm64,arm - name: Set up Docker BuildKit if: github.repository_owner == 'openziti' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-v')) id: buildx - uses: docker/setup-buildx-action@master + uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub if: github.repository_owner == 'openziti' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-v')) - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_HUB_API_USER }} password: ${{ secrets.DOCKER_HUB_API_TOKEN }} @@ -291,7 +291,7 @@ jobs: - name: Build & Push Multi-Platform Container Image to Hub if: github.repository_owner == 'openziti' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-v')) - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: builder: ${{ steps.buildx.outputs.name }} context: ${{ github.workspace }} # build context is workspace so we can copy artifacts from ./release diff --git a/.github/workflows/push-quickstart.yml b/.github/workflows/push-quickstart.yml index 8f14d4137..a17d8bcb4 100644 --- a/.github/workflows/push-quickstart.yml +++ b/.github/workflows/push-quickstart.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Login to Docker Hub uses: docker/login-action@v1 with: