-
Notifications
You must be signed in to change notification settings - Fork 680
37 lines (35 loc) · 1.11 KB
/
publish_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
name: Publish Docker Image
on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- master
- dev
jobs:
publish_docker_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install qemu (required for cross-platform builds)
run: |
sudo apt update
sudo apt -y install qemu-system qemu-user-static
sudo systemctl restart docker
- name: Create multiplatform docker builder
run: docker buildx create --use
- name: Build and publish images to DockerHub
env:
DOCKER_USERNAME: ${{ secrets.docker_username }}
DOCKER_PASS: ${{ secrets.docker_pass }}
DOCKER_IMAGE: ${{ secrets.docker_repo }}
BUILD_MULTI_ARCH: 1
run: scripts/build_image.sh
- name: Build and publish bootstrap-monitor image to DockerHub
env:
DOCKER_USERNAME: ${{ secrets.docker_username }}
DOCKER_PASS: ${{ secrets.docker_pass }}
DOCKER_IMAGE: avaplatform/bootstrap-monitor
BUILD_MULTI_ARCH: 1
run: scripts/build_bootstrap_monitor_image.sh