Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #439 from sarbull/polymer
Browse files Browse the repository at this point in the history
Update node-build
  • Loading branch information
sarbull authored Sep 27, 2022
2 parents d6ea970 + 96100fc commit 483d2cb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Egeria UI Build

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

jobs:

Expand Down Expand Up @@ -59,21 +59,21 @@ jobs:
password: ${{ secrets.QUAY_IO_ACCESS_TOKEN }}
if: ${{ steps.check.outputs.changed == 'true' && github.event_name == 'push' && github.repository == 'odpi/egeria-ui' }}
# For releases (ie not main) we push the image - but not the latest tag
- name: Build and push (not master merge)
- name: Build and push (not polymer merge)
id: docker_build_release
uses: docker/build-push-action@v2
if: ${{ steps.check.outputs.changed == 'true' && github.ref != 'refs/heads/master' }}
if: ${{ steps.check.outputs.changed == 'true' && github.ref != 'refs/heads/polymer' }}
with:
push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-ui' }}
tags: odpi/egeria-ui:${{ steps.package-version.outputs.current-version}}, quay.io/odpi/egeria-ui:${{ steps.package-version.outputs.current-version}}
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
# For main code stream we push the image and add the latest tag
- name: Build and push (master merge)
- name: Build and push (polymer merge)
id: docker_build_master
uses: docker/build-push-action@v2
if: ${{ steps.check.outputs.changed == 'true' && github.ref == 'refs/heads/master' }}
if: ${{ steps.check.outputs.changed == 'true' && github.ref == 'refs/heads/polymer' }}
with:
push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-ui' }}
tags: odpi/egeria-ui:${{ steps.package-version.outputs.current-version }}, odpi/egeria-ui:latest, quay.io/odpi/egeria-ui:${{ steps.package-version.outputs.current-version }}, quay.io/odpi/egeria-ui:latest
Expand All @@ -82,10 +82,10 @@ jobs:
platforms: linux/amd64,linux/arm64
# Note the digest
- name: Image digest (release)
if: ${{ steps.check.outputs.changed == 'true' && github.ref != 'refs/heads/master' }}
if: ${{ steps.check.outputs.changed == 'true' && github.ref != 'refs/heads/polymer' }}
run: echo ${{ steps.docker_build_release.outputs.digest }}
- name: Image digest (master)
if: ${{ steps.check.outputs.changed == 'true' && github.ref == 'refs/heads/master' }}
- name: Image digest (polymer)
if: ${{ steps.check.outputs.changed == 'true' && github.ref == 'refs/heads/polymer' }}
run: echo ${{ steps.docker_build_master.outputs.digest }}
# Save an artifact of the build tree & upload
- name: Create Archive
Expand Down

0 comments on commit 483d2cb

Please sign in to comment.