Skip to content

Commit c6ce24d

Browse files
authored
Build and publish on new release
1 parent 20301f6 commit c6ce24d

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
# This is a basic workflow to help you get started with Actions
21

32
name: Build
43

5-
# Controls when the action will run.
64
on:
7-
# Triggers the workflow on push or pull request events but only for the main branch
85
release:
9-
branches: [ main ]
6+
type: [ published ]
107

11-
# Allows you to run this workflow manually from the Actions tab
12-
workflow_dispatch:
13-
14-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
158
jobs:
169
build_and_publish_image:
1710
runs-on: ubuntu-latest
1811
env:
1912
DOCKER_REPOSITORY: observatorycontrolsystem/ocs-example-frontend
20-
DOCKER_IMAGE_TAG: ${{ github.event.ref }}
13+
DOCKER_IMAGE_TAG: ${{ github.event.release.tag_name }}
2114
steps:
2215
- name: Check out repository
2316
uses: actions/checkout@v2

0 commit comments

Comments
 (0)