-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 960 Bytes
/
build_ui_docker_image.yml
File metadata and controls
38 lines (29 loc) · 960 Bytes
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
name: Build and Publish SpineUI Image
on:
push:
branches:
- main
workflow_dispatch:
env:
DOCKERHUB_USERNAME: tnodecode
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
IMAGE_NAME: spineui
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u $DOCKERHUB_USERNAME --password-stdin
- name: Build and push Docker image for Linux x86 and Linux AARCH64
run: |
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 -t $DOCKERHUB_USERNAME/$IMAGE_NAME:latest --push .
- name: Logout from Docker Hub
run: docker logout