You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build_and_push_docker_images.yml
+39-23Lines changed: 39 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ on:
10
10
env:
11
11
REGISTRY: ghcr.io
12
12
IMAGE_NAME: ${{ github.repository }}
13
+
ROS_DISTRO: jazzy
13
14
14
15
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
15
16
jobs:
@@ -20,8 +21,30 @@ jobs:
20
21
contents: read
21
22
packages: write
22
23
attestations: write
23
-
id-token: write
24
-
#
24
+
id-token: write
25
+
strategy:
26
+
matrix:
27
+
variant:
28
+
- name: teleop
29
+
platforms: linux/arm64
30
+
context: .
31
+
file: ./docker/Dockerfile-teleop
32
+
- name: ricbot
33
+
platforms: linux/arm64
34
+
context: .
35
+
file: ./docker/Dockerfile-robot
36
+
- name: ui
37
+
platforms: linux/arm64
38
+
context: ./svelte-ui/
39
+
file: ./docker/Dockerfile
40
+
- name: ui_com
41
+
platforms: linux/arm64
42
+
context: ./helloric_ui_com/
43
+
file: ./Dockerfile
44
+
- name: ds4
45
+
platforms: linux/arm64
46
+
context: .
47
+
file: ./docker/Dockerfile-ds4
25
48
steps:
26
49
- name: Checkout repository
27
50
uses: actions/checkout@v5
@@ -34,55 +57,48 @@ jobs:
34
57
registry: ${{ env.REGISTRY }}
35
58
username: ${{ github.actor }}
36
59
password: ${{ secrets.GITHUB_TOKEN }}
37
-
38
-
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
60
+
# as suggested here: https://github.com/docker/build-push-action
61
+
- name: Set up QEMU
62
+
uses: docker/setup-qemu-action@v3
63
+
- name: Set up Docker Buildx
64
+
uses: docker/setup-buildx-action@v3
65
+
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
39
66
- name: Extract metadata (tags, labels) for Docker
# as suggested here: https://github.com/docker/build-push-action
59
-
-
60
-
name: Set up QEMU
61
-
uses: docker/setup-qemu-action@v3
62
-
-
63
-
name: Set up Docker Buildx
64
-
uses: docker/setup-buildx-action@v3
65
81
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
66
82
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository.
67
83
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [Using artifact attestations to establish provenance for builds](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
0 commit comments