Skip to content

Enable publishing Ubuntu 20 dependency & execution container images f… #21

Enable publishing Ubuntu 20 dependency & execution container images f…

Enable publishing Ubuntu 20 dependency & execution container images f… #21

name: generate-execution-dependency-image
on:
push:
paths:
- 'tools/docker-images/clp-execution-base-focal/**'
- 'components/core/tools/scripts/lib_install/**'
- '.github/workflows/clp-execution-image-build.yaml'
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{github.repository}}/clp-execution-x86-ubuntu-focal
jobs:
build:
runs-on: ubuntu-20.04
name: Build Image
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Workaround actions/runner-images/issues/6775
run: chown $(id -u):$(id -g) -R .
- name: Build and push Docker image
uses: ./.github/actions/clp-docker-build-push-action
with:
image_name: ${{env.IMAGE_NAME}}
file: ./tools/docker-images/clp-execution-base-focal/Dockerfile
token: ${{secrets.GITHUB_TOKEN}}
push_image: ${{'pull_request' != github.event_name && 'refs/heads/v0.5-prototype' == github.ref}}