Skip to content

Dockerfile.base-build: use apt and install pkg-config #3

Dockerfile.base-build: use apt and install pkg-config

Dockerfile.base-build: use apt and install pkg-config #3

Workflow file for this run

name: Base image
on:
push:
branches: [base]
jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- name: Log into Github registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build base run image
run: |
IMAGE_ID=ghcr.io/${{ github.repository }}/base-run:$GITHUB_SHA
docker build . -f .github/workflows/Dockerfile.base-run --tag $IMAGE_ID
docker push $IMAGE_ID
echo Pushed new base image $IMAGE_ID
- name: Build base build image
run: |
IMAGE_ID=ghcr.io/${{ github.repository }}/base-build:$GITHUB_SHA
docker build . -f .github/workflows/Dockerfile.base-build --tag $IMAGE_ID
docker push $IMAGE_ID
echo Pushed new base build image $IMAGE_ID