Skip to content

Commit 1341970

Browse files
committed
fixup! using a go script to test update
1 parent 41ce10d commit 1341970

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
env:
2929
GH_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
3030
run: |
31-
go test -v ./internal/testtools/deb_test.go --arch arm64
31+
go test -v ./internal/testtools/deb_test.go --arch amd64

internal/testtools/deb_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestStableToUnstable(t *testing.T) {
2828
buildDebVersion(t, majorTag, *arch)
2929

3030
fmt.Println("**** BUILD docker image *****")
31-
buildDockerImage(t, "test.Dockerfile", "apt-test-update-image", *arch)
31+
buildDockerImage(t, "internal/testtools/test.Dockerfile", "apt-test-update-image", *arch)
3232
// fmt.Println("**** RUN docker image *****")
3333
// runDockerCommand(t, "apt-test-update-image")
3434
// preUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
@@ -171,7 +171,7 @@ func minorTag(t *testing.T, tag string) string {
171171
func buildDockerImage(t *testing.T, dockerfile, name, arch string) {
172172
t.Helper()
173173

174-
cmd := exec.Command("docker", "build", "--build-arg", "ARCH="+arch, "-t", name, "-f", dockerfile, ".")
174+
cmd := exec.Command("docker", "build", "--no-cache", "--build-arg", "ARCH="+arch, "-t", name, "-f", dockerfile, ".")
175175

176176
// Capture both stdout and stderr
177177
var out bytes.Buffer

0 commit comments

Comments
 (0)