Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
go_version_file: go.mod

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod

Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and tag dev image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.dev
Expand All @@ -69,7 +69,7 @@ jobs:
push: false

- name: Run Trivy vulnerability scanner on the dev image
uses: aquasecurity/trivy-action@0.16.0
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: 'controlplane/simulator:dev'
format: 'table'
Expand All @@ -79,7 +79,7 @@ jobs:
trivyignores: './.trivy-config/.trivyignore'

- name: Build and tag simulator image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
Expand All @@ -88,7 +88,7 @@ jobs:
push: false

- name: Run Trivy vulnerability scanner on simulator image
uses: aquasecurity/trivy-action@0.16.0
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: controlplane/simulator:${{ github.sha }}
format: 'table'
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache container layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}${{ matrix.containers.suffix }}-buildx-${{ github.sha }}
Expand All @@ -33,13 +33,13 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and tag dev image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.dev
Expand All @@ -49,7 +49,7 @@ jobs:
push: false

- name: Run Trivy vulnerability scanner on the dev image
uses: aquasecurity/trivy-action@0.16.0
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: 'controlplane/simulator:dev'
format: 'table'
Expand All @@ -59,7 +59,7 @@ jobs:
trivyignores: './.trivy-config/.trivyignore'

- name: Build and tag simulator image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
Expand All @@ -68,7 +68,7 @@ jobs:
push: false

- name: Run Trivy vulnerability scanner on simulator image
uses: aquasecurity/trivy-action@0.16.0
uses: aquasecurity/trivy-action@0.24.0
with:
image-ref: controlplane/simulator:${{ github.ref_name }}
format: 'table'
Expand All @@ -83,7 +83,7 @@ jobs:
platforms: linux/amd64,linux/arm64

- name: Build and push dev image ## should use cache image from the previous step
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.dev
Expand All @@ -98,7 +98,7 @@ jobs:
docker images ls

- name: Build and push simulator image ## should use cache image from the previous step
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
Expand All @@ -119,15 +119,15 @@ jobs:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- run: go version

- uses: anchore/sbom-action/download-syft@v0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
args: release --clean
Expand Down