Skip to content

Dumb mistake with comments #9

Dumb mistake with comments

Dumb mistake with comments #9

Workflow file for this run

name: Build Docker images
on:
push:
branches: [ main ]
paths:
- IMAGES/**
jobs:
build:
name: "${{ matrix.tag }} build"
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
tag:
- ptero-wine
- ptero-dotnet
- ptero-plutonium
steps:
#- name: Extract branch name
# shell: bash
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# id: extract_branch
- uses: actions/checkout@v2
- uses : docker/setup-buildx-action@v1
with:
version: "v0.5.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
context: ./IMAGES/${{ matrix.tag }}
file: ./IMAGES/${{ matrix.tag }}/dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/garycraft/${{ matrix.tag }}:latest
#tags: |
# ghcr.io/garycraft/${{ matrix.tag }}:${{ steps.extract_branch.outputs.branch }}