Update build actions

This commit is contained in:
Paul Lorenz
2022-10-12 15:25:31 -04:00
parent 23c0fa1f7c
commit c8f129fe15
2 changed files with 15 additions and 15 deletions
+14 -14
View File
@@ -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
+1 -1
View File
@@ -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: