We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20301f6 commit c6ce24dCopy full SHA for c6ce24d
1 file changed
.github/workflows/build.yaml .github/workflows/publish-on-release.yaml.github/workflows/build.yaml renamed to .github/workflows/publish-on-release.yaml
@@ -1,23 +1,16 @@
1
-# This is a basic workflow to help you get started with Actions
2
3
name: Build
4
5
-# Controls when the action will run.
6
on:
7
- # Triggers the workflow on push or pull request events but only for the main branch
8
release:
9
- branches: [ main ]
+ type: [ published ]
10
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
15
jobs:
16
build_and_publish_image:
17
runs-on: ubuntu-latest
18
env:
19
DOCKER_REPOSITORY: observatorycontrolsystem/ocs-example-frontend
20
- DOCKER_IMAGE_TAG: ${{ github.event.ref }}
+ DOCKER_IMAGE_TAG: ${{ github.event.release.tag_name }}
21
steps:
22
- name: Check out repository
23
uses: actions/checkout@v2
0 commit comments