Skip to content

Commit

Permalink
Build variants
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Nov 22, 2020
1 parent a5f0614 commit ca44fa1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
docker:
name: Docker image
runs-on: ubuntu-latest
strategy:
matrix:
variant: [fpm-alpine, fpm, apache]
steps:
- uses: actions/[email protected]

Expand All @@ -25,13 +28,13 @@ jobs:
- name: Docker build and push
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
context: ./${{ matrix.variant }}/
file: ./${{ matrix.variant }}/Dockerfile
labels: |
org.opencontainers.image.authors=${{ github.repository_owner }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
tags: |
ghcr.io/${{ secrets.REGISTRY_IMAGE }}:latest
ghcr.io/${{ secrets.REGISTRY_IMAGE }}:${{ matrix.variant }}
# ghcr.io/${{ secrets.REGISTRY_IMAGE }}:${{ github.ref }}
push: true

0 comments on commit ca44fa1

Please sign in to comment.