Skip to content

Commit

Permalink
workflows: avoid unknown/unknown architecture in ghcr (#2971)
Browse files Browse the repository at this point in the history
Pin buildkit version in all `docker/setup-buildx-action@v2` steps (N.B.: at one place v1 is used, which is using buildkit version <0.10.5, so I haven't pinned it there). Other proposed solutions didn't seem to work currently (tested on private repo).

Included as well .vscode in .gitignore.

category: bug
ticket: #2654 

Closes #2654
  • Loading branch information
KaloyanTanev authored Mar 18, 2024
1 parent e4573a5 commit aaed89d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-push-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v2
with:
driver-opts: "image=moby/buildkit:v0.10.5" # avoid unknown/unknown arch in ghcr

- name: Get app/version.Version from the code
if: github.ref_type == 'branch'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2 # For compose to build images
with:
driver-opts: "image=moby/buildkit:v0.10.5" # avoid unknown/unknown arch in ghcr
- uses: actions/setup-go@v4
with:
go-version: '1.22.1'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2 # For compose to build images
with:
driver-opts: "image=moby/buildkit:v0.10.5" # avoid unknown/unknown arch in ghcr
- uses: actions/setup-go@v4
with:
go-version: '1.22.1'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
.vscode/
# JIRA plugin
atlassian-ide-plugin.xml
# User-specific files (MonoDevelop/Xamarin Studio)
Expand Down

0 comments on commit aaed89d

Please sign in to comment.