Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Release trigger image build and push (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyione authored Dec 2, 2020
1 parent 4e0e9d7 commit 54ee393
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [ created ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -64,6 +66,16 @@ jobs:
push: true
build-args: VERSION=${{ github.ref }}
tags: openpai/pai-marketplace-webportal:latest
- name: Build and push on release
id: docker_build_release
uses: docker/build-push-action@v2
if: ${{ github.event_name == 'release' }}
with:
context: .
file: ./webportal/deploy/Dockerfile
push: true
build-args: VERSION=${{ github.ref }}
tags: openpai/pai-marketplace-webportal:${{ github.ref }}
- name: Build and push manual
id: docker_build_manual
uses: docker/build-push-action@v2
Expand Down Expand Up @@ -119,6 +131,16 @@ jobs:
push: true
build-args: VERSION=${{ github.ref }}
tags: openpai/pai-marketplace-restserver:latest
- name: Build and push on release
id: docker_build_release
uses: docker/build-push-action@v2
if: ${{ github.event_name == 'release' }}
with:
context: .
file: ./rest_server/deploy/Dockerfile
push: true
build-args: VERSION=${{ github.ref }}
tags: openpai/pai-marketplace-restserver:${{ github.ref }}
- name: Build and push manual
id: docker_build_manual
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 54ee393

Please sign in to comment.