-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (45 loc) · 1.4 KB
/
localdev.yaml
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
45
46
47
48
49
50
51
52
53
54
name: Build and Push Multi-Platform Docker Image
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow on'
default: 'main'
required: true
push:
branches:
- main
paths:
- 'images/ig-publisher/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and push multi-platform image for localdev
run: |
docker buildx build --push \
--platform linux/amd64,linux/arm64 \
--target localdev \
-t ghcr.io/fhir/ig-publisher-localdev:latest \
images/ig-publisher
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push multi-platform image for localdev
run: |
docker buildx build --push \
--platform linux/amd64,linux/arm64 \
--target localdev \
-t hl7fhir/ig-publisher-base:latest \
images/ig-publisher