Skip to content

attempt fix

attempt fix #27

name: Build & publish multiple docker images
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- dockerfile: ./github-actions-runner/Dockerfile
image: gh-actions-runner
steps:
- name: checkout
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
file: ${{ matrix.dockerfile }}
context: .
image: ${{ matrix.image }}
tags: ghcr.io/joren-vangoethem/${{ matrix.image }}:latest
push: true