-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1012 Bytes
/
build-docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Docker Login
uses: docker/login-action@v2.0.0
with:
username: esimkowitz
password: ${{ secrets.DOCKER_HUB_ESIMKOWITZ_PAT }}
# Log out from the Docker registry at the end of a job
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v2.0.0
with:
platforms: arm64
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: esimkowitz/sphero-rvr-ros2
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
platforms: arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}