Skip to content

Commit

Permalink
Merge pull request #3 from alexanderrichards/update_workflow
Browse files Browse the repository at this point in the history
add build check to push and PR
  • Loading branch information
alexanderrichards authored Oct 18, 2023
2 parents 155461d + c7f385b commit 3d15dfa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI build test workflow

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
tags: alexanderrichards/dirac_ui:7.3.26
build-args: |
dirac_version=7.3.26
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image CI
name: CD release build and publish

on:
release:
Expand All @@ -24,7 +24,7 @@ jobs:
with:
# push: true
context: .
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
tags: alexanderrichards/dirac_ui:${{ github.event.release.tag_name }},alexanderrichards/dirac_ui:latest
build-args: |
dirac_version=${{ github.event.release.tag_name }}

0 comments on commit 3d15dfa

Please sign in to comment.