File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : docker_build_and_publish.yml
2+ on : [workflow_dispatch]
3+
4+ jobs :
5+ deploy_docker_image :
6+ name : Deploy Docker Image with SAS
7+
8+ runs-on : ubuntu-latest
9+ strategy :
10+ matrix :
11+ ros : [ 'jazzy', 'lyrical' ]
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Log in to Docker Hub
16+ uses : docker/login-action@v3
17+ with :
18+ username : ${{ vars.DOCKER_USERNAME }}
19+ password : ${{ secrets.DOCKER_PASSWORD }}
20+
21+ - name : Set up QEMU
22+ uses : docker/setup-qemu-action@v3
23+
24+ - name : Set up Docker Buildx
25+ uses : docker/setup-buildx-action@v4
26+
27+ - name : Build and push sas
28+ uses : docker/build-push-action@v7
29+ with :
30+ platforms : linux/amd64,linux/arm64
31+ push : true
32+ file : ${{ matrix.ros }}/sas/Dockerfile
33+ build-contexts : |
34+ sas_repo=./
35+ # cache-from: type=gha
36+ # cache-to: type=gha,mode=max
37+ tags : ${{ vars.DOCKER_USERNAME }}/sas:${{ matrix.ros }}
Original file line number Diff line number Diff line change 1- name : SAS Debian Builder
1+ name : sas deb builder
22on : [workflow_dispatch]
33
44jobs :
55 debian_builder :
6- name : Debian Builder
6+ name : deb builder multiversion multiarch
77 runs-on : ${{ matrix.os }}
88 strategy :
99 matrix :
9696 - name : Deploy to GitHub Pages
9797 id : deployment
9898 uses : actions/deploy-pages@v4
99-
100- deploy_docker_image :
101- name : Deploy Docker Image with SAS
102- needs : deploy_ppa_page
103-
104- runs-on : ubuntu-latest
105- strategy :
106- matrix :
107- ros : [ 'jazzy', 'lyrical' ]
108-
109- steps :
110- - uses : actions/checkout@v2
111- - name : Log in to Docker Hub
112- uses : docker/login-action@v3
113- with :
114- username : ${{ vars.DOCKER_USERNAME }}
115- password : ${{ secrets.DOCKER_PASSWORD }}
116-
117- - name : Set up QEMU
118- uses : docker/setup-qemu-action@v3
119-
120- - name : Set up Docker Buildx
121- uses : docker/setup-buildx-action@v3
122-
123- - name : Build and push sas
124- uses : docker/build-push-action@v6
125- with :
126- platforms : linux/amd64,linux/arm64
127- push : true
128- file : ${{ matrix.ros }}/sas/Dockerfile
129- # cache-from: type=gha
130- # cache-to: type=gha,mode=max
131- tags : ${{ vars.DOCKER_USERNAME }}/sas:${{ matrix.ros }}
132-
You can’t perform that action at this time.
0 commit comments