Merge pull request #34 from juhp/pid1-20 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |