Skip to content

Commit

Permalink
add qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktavious committed Jan 23, 2025
1 parent d0338f4 commit de4c527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Verify release has latest OpsLevel dependencies
run: task has-latest-opslevel-go
- name: Login to Public ECR
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -85,6 +83,8 @@ jobs:
fi
git tag -f ${{ steps.version.outputs.RELEASE_VERSION }} -m "Cut Release '${{ steps.version.outputs.RELEASE_VERSION }}'"
git push -f origin refs/tags/${{ steps.version.outputs.RELEASE_VERSION }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
Expand Down
22 changes: 0 additions & 22 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ tasks:
desc: Workflow to run in CI
cmds:
- task: workspace
- task: has-latest-opslevel-go
- task: install-gofumpt
- task: install-golangci-lint
- task: lint
Expand Down Expand Up @@ -76,27 +75,6 @@ tasks:
- cmd: echo "opslevel-go workspace ready!"
silent: true

has-latest-opslevel-go:
desc: Check if latest release of opslevel-go in go.mod
dir: "{{.SRC_DIR}}"
silent: true
vars:
GO_WORK: "go.work"
TMP_GO_WORK: "tmp_go.work"
LATEST_OPSLEVEL_GO_VERSION:
sh: go list -u -m -versions github.com/opslevel/opslevel-go/v2024 | awk '{print $NF}'
cmds:
- if [[ -f {{.GO_WORK}} ]]; then mv {{.GO_WORK}} {{.TMP_GO_WORK}}; fi
- defer: if [[ -f {{.TMP_GO_WORK}} ]]; then mv {{.TMP_GO_WORK}} {{.GO_WORK}}; fi
- |-
if [[ {{.LATEST_OPSLEVEL_GO_VERSION}} == $(go list -m --json '{{.OPSLEVEL_GO_PKG}}' | jq -r '.Version') ]]; then
echo "Using latest version of opslevel-go - {{.LATEST_OPSLEVEL_GO_VERSION}}";
else
echo "WARNING: current version of opslevel-go is behind '{{.LATEST_OPSLEVEL_GO_VERSION}}'"
echo "Run 'task fix' to get latest version"
exit 1
fi
# internal (not directly called) tasks

go-install-tool:
Expand Down

0 comments on commit de4c527

Please sign in to comment.