Skip to content

Commit de4c527

Browse files
committed
add qemu
1 parent d0338f4 commit de4c527

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
with:
4848
version: 3.x
4949
repo-token: ${{ secrets.GITHUB_TOKEN }}
50-
- name: Verify release has latest OpsLevel dependencies
51-
run: task has-latest-opslevel-go
5250
- name: Login to Public ECR
5351
uses: docker/login-action@v3
5452
with:
@@ -85,6 +83,8 @@ jobs:
8583
fi
8684
git tag -f ${{ steps.version.outputs.RELEASE_VERSION }} -m "Cut Release '${{ steps.version.outputs.RELEASE_VERSION }}'"
8785
git push -f origin refs/tags/${{ steps.version.outputs.RELEASE_VERSION }}
86+
- name: Set up QEMU
87+
uses: docker/setup-qemu-action@v3
8888
- name: Run GoReleaser
8989
uses: goreleaser/goreleaser-action@v6.1.0
9090
with:

Taskfile.yml

-22
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ tasks:
1111
desc: Workflow to run in CI
1212
cmds:
1313
- task: workspace
14-
- task: has-latest-opslevel-go
1514
- task: install-gofumpt
1615
- task: install-golangci-lint
1716
- task: lint
@@ -76,27 +75,6 @@ tasks:
7675
- cmd: echo "opslevel-go workspace ready!"
7776
silent: true
7877

79-
has-latest-opslevel-go:
80-
desc: Check if latest release of opslevel-go in go.mod
81-
dir: "{{.SRC_DIR}}"
82-
silent: true
83-
vars:
84-
GO_WORK: "go.work"
85-
TMP_GO_WORK: "tmp_go.work"
86-
LATEST_OPSLEVEL_GO_VERSION:
87-
sh: go list -u -m -versions github.com/opslevel/opslevel-go/v2024 | awk '{print $NF}'
88-
cmds:
89-
- if [[ -f {{.GO_WORK}} ]]; then mv {{.GO_WORK}} {{.TMP_GO_WORK}}; fi
90-
- defer: if [[ -f {{.TMP_GO_WORK}} ]]; then mv {{.TMP_GO_WORK}} {{.GO_WORK}}; fi
91-
- |-
92-
if [[ {{.LATEST_OPSLEVEL_GO_VERSION}} == $(go list -m --json '{{.OPSLEVEL_GO_PKG}}' | jq -r '.Version') ]]; then
93-
echo "Using latest version of opslevel-go - {{.LATEST_OPSLEVEL_GO_VERSION}}";
94-
else
95-
echo "WARNING: current version of opslevel-go is behind '{{.LATEST_OPSLEVEL_GO_VERSION}}'"
96-
echo "Run 'task fix' to get latest version"
97-
exit 1
98-
fi
99-
10078
# internal (not directly called) tasks
10179

10280
go-install-tool:

0 commit comments

Comments
 (0)