Skip to content

Commit

Permalink
ci: use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ngc7331 committed Jun 18, 2024
1 parent 8dff874 commit 7e334cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 37 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/build-unsafe.yaml

This file was deleted.

10 changes: 9 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:

jobs:
build:
strategy:
matrix:
include:
- dockerfile-suffix: ""
tag-suffix: ""
- dockerfile-suffix: ".unsafe"
tag-suffix: "-unsafe"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -29,7 +36,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ./Dockerfile${{ matrix.dockerfile-suffix }}
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ngc7331/derper:latest, ngc7331/derper:${{ env.VERSION }}
tags: ngc7331/derper:latest${{ matrix.tag-suffix }}, ngc7331/derper:${{ env.VERSION }}${{ matrix.tag-suffix }}

0 comments on commit 7e334cd

Please sign in to comment.