-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (34 loc) · 1.04 KB
/
build-base-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
name: build-base-image
on:
# Only run this workflow manually, to ensure it WON'T run with every commit
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up buildx for Docker
uses: docker/[email protected]
- name: Login to GHCR
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build base Docker image (builder)
uses: docker/[email protected]
with:
push: true
tags: ghcr.io/sillsdev/lfmerge-base:sdk
context: docker
file: Dockerfile.builder-base
- name: Build base Docker image (runtime)
uses: docker/[email protected]
with:
push: true
tags: ghcr.io/sillsdev/lfmerge-base:runtime
context: docker
file: Dockerfile.runtime-base
- name: List Docker images to verify build
run: docker image ls