Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarze0 committed Aug 5, 2022
1 parent f936a21 commit 495bfb1
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 41 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/base-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to container registry
env:
Expand Down
42 changes: 24 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Check out code
uses: actions/checkout@v2
go-version: '1.18.x'
cache: true
check-latest: true
- name: Build
run: make build
- name: Test
Expand All @@ -34,23 +36,25 @@ jobs:
max-parallel: 2
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: '1.18.x'
cache: true
check-latest: true
- name: Install Ko
# This sha corresponds to v0.4
uses: imjasonh/setup-ko@2c3450ca27f6e6f2b02e72a40f2163c281a1f675
# This sha corresponds to v0.5
uses: imjasonh/setup-ko@78eea08f10db87a7a23a666a4a6fe2734f2eeb8d
with:
version: v0.11.2
- name: Check out code
uses: actions/checkout@v2
- name: Install kubectl
uses: azure/setup-kubectl@v1
with:
version: ${{ matrix.kubernetes }}
- name: Create kind cluster
uses: helm/kind-action@v1.2.0
uses: helm/kind-action@v1.3.0
with:
version: v0.11.1
node_image: kindest/node:${{ matrix.kubernetes }}
Expand Down Expand Up @@ -93,18 +97,20 @@ jobs:
max-parallel: 2
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Check out code
uses: actions/checkout@v2
go-version: '1.18.x'
cache: true
check-latest: true
- name: Install kubectl
uses: azure/setup-kubectl@v1
with:
version: ${{ matrix.kubernetes }}
- name: Create kind cluster
uses: helm/kind-action@v1.2.0
uses: helm/kind-action@v1.3.0
with:
version: v0.11.1
node_image: kindest/node:${{ matrix.kubernetes }}
Expand Down Expand Up @@ -140,8 +146,8 @@ jobs:
kubectl apply -f test/data/registry.yaml
kubectl -n registry rollout status deployment registry --timeout=1m
- name: Install Ko
# This sha corresponds to v0.4
uses: imjasonh/setup-ko@2c3450ca27f6e6f2b02e72a40f2163c281a1f675
# This sha corresponds to v0.5
uses: imjasonh/setup-ko@78eea08f10db87a7a23a666a4a6fe2734f2eeb8d
with:
version: v0.11.2
- name: Install Shipwright Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mirror-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: imjasonh/setup-crane@01d26682810dcd47bfc8eb1efe791558123a9373
- uses: imjasonh/setup-crane@e82f1b9a8007d399333baba4d75915558e9fb6a4

- name: Mirror images
env:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ jobs:
IMAGE_NAMESPACE: ${{ github.repository }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: '1.18.x'
cache: true
check-latest: true

# Install tools
# This sha corresponds to v0.4
- uses: imjasonh/setup-ko@2c3450ca27f6e6f2b02e72a40f2163c281a1f675
# This sha corresponds to v0.5
- uses: imjasonh/setup-ko@78eea08f10db87a7a23a666a4a6fe2734f2eeb8d
with:
version: v0.11.2
- uses: imjasonh/setup-crane@01d26682810dcd47bfc8eb1efe791558123a9373
- uses: sigstore/cosign-installer@v1.2.0
- uses: imjasonh/setup-crane@e82f1b9a8007d399333baba4d75915558e9fb6a4
- uses: sigstore/cosign-installer@v2.5.0

- name: Get current date
id: date
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,21 @@ jobs:
TAG: ${{ github.event.inputs.release }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history, needed for release note generation.
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: '1.18.x'
cache: true
check-latest: true

# Install tools
# This sha corresponds to v0.4
- uses: imjasonh/setup-ko@2c3450ca27f6e6f2b02e72a40f2163c281a1f675
# This sha corresponds to v0.5
- uses: imjasonh/setup-ko@78eea08f10db87a7a23a666a4a6fe2734f2eeb8d
with:
version: v0.11.2
- uses: sigstore/cosign-installer@v1.2.0
- uses: sigstore/cosign-installer@v2.5.0

- name: Build Release Changelog
env:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ jobs:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: go/src/github.com/shipwright-io/build
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18.x'
cache: true
check-latest: true
cache-dependency-path: go/src/github.com/shipwright-io/build
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
working-directory: go/src/github.com/shipwright-io/build
args: --timeout=10m
Expand Down

0 comments on commit 495bfb1

Please sign in to comment.