8000 Fix with/include · sudo-bot/docker-rustpython@0839625 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0839625

Browse files
committed
Fix with/include
1 parent 0d6c530 commit 0839625

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
release:
99
types: [released]
1010
push:
11-
tags:
12-
- "*"
11+
tags:
12+
- "*"
1313

1414
jobs:
1515
build-image:
@@ -18,13 +18,13 @@ jobs:
1818
fail-fast: false
1919
max-parallel: 4
2020
matrix:
21-
with:
22-
- { platform: "linux/arm/v6", internal-tag: "armv6" }
23-
- { platform: "linux/arm/v7", internal-tag: "armv7" }
24-
- { platform: "linux/arm64/v8", internal-tag: "arm64v8" }
25-
- { platform: "linux/386", internal-tag: "386" }
26-
- { platform: "linux/ppc64le", internal-tag: "ppc64le" }
27-
- { platform: "linux/amd64", internal-tag: "amd64" }
21+
include:
22+
- { platform: "linux/arm/v6", internal-tag: "armv6" }
23+
- { platform: "linux/arm/v7", internal-tag: "armv7" }
24+
- { platform: "linux/arm64/v8", internal-tag: "arm64v8" }
25+
- { platform: "linux/386", internal-tag: "386" }
26+
- { platform: "linux/ppc64le", internal-tag: "ppc64le" }
27+
- { platform: "linux/amd64", internal-tag: "amd64" }
2828
steps:
2929
- name: Check out the repository
3030
uses: actions/checkout@v3
@@ -43,11 +43,11 @@ jobs:
4343
- name: Build and push image
4444
run: make docker-build
4545
env:
46-
DOCKER_BUILDKIT: 1
47-
PLATFORM: ${{ matrix.platform }}
48-
IMAGE_TAG: "ghcr.io/sudo-bot/docker-rustpython/rustpython:${{ internal-tag }}-latest"
49-
ACTION: push
50-
EXTRA_ARGS: "--cache-to=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache,mode=max --cache-from=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-${{ matrix.platform }}:latest"
46+
DOCKER_BUILDKIT: 1
47+
PLATFORM: ${{ matrix.platform }}
48+
IMAGE_TAG: "ghcr.io/sudo-bot/docker-rustpython/rustpython:${{ internal-tag }}-latest"
49+
ACTION: push
50+
EXTRA_ARGS: "--cache-to=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache,mode=max --cache-from=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-${{ matrix.platform }}:latest"
5151

5252
create-final-image:
5353
runs-on: ubuntu-latest
@@ -67,13 +67,13 @@ jobs:
6767
password: ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
6868
- name: Create the manifest
6969
run: |
70-
docker manifest create docker.io/botsudo/docker-rustpython:latest \
71-
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v6-latest \
72-
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v7-latest \
73-
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v8-latest \
74-
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/386-latest \
75-
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/ppc64le-latest \
76-
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/amd64-latest
70+
docker manifest create docker.io/botsudo/docker-rustpython:latest \
71+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v6-latest \
72+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v7-latest \
73+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v8-latest \
74+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/386-latest \
75+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/ppc64le-latest \
76+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/amd64-latest
7777
- name: Push the manifest
7878
run: docker manifest push docker.io/botsudo/docker-rustpython:latest
7979
- name: Inspect the manifest

0 commit comments

Comments
 (0)
0