Skip to content

build-base-image

build-base-image #8

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