Skip to content

Commit

Permalink
incorporate matrix approach for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lfunderburk authored May 19, 2023
1 parent b61fb48 commit 227deb2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
dockerfile: [Dockerfile.pipe, Dockerfile.api, Dockerfile.dash]

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ${{ matrix.dockerfile }}
push: true
tags: my-image-name:$(date +%s)

0 comments on commit 227deb2

Please sign in to comment.