-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3839da7
commit 6a96d09
Showing
2 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,9 @@ on: | |
push: | ||
branches: | ||
- main | ||
tags: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- main | ||
release: | ||
published: | ||
|
||
env: | ||
REGISTRY: ghcr.io/ | ||
|
@@ -44,13 +42,12 @@ jobs: | |
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}${{ env.ISPG_IMAGE }} | ||
# Before tests pass, we tag the image by 'tip' to indicate latest build, | ||
# and by pull request number, e.g. pr-11 | ||
# Before tests pass, we tag the image by the branch name | ||
# or by pull request number, e.g. pr-11 | ||
# https://github.com/docker/metadata-action#tags-input | ||
# See the release workflow for the release tags. | ||
# TODO: Figure out a better solution rather than using 'tip' tag | ||
tags: | | ||
type=raw,value=tip # Must be here so we have at least one tag | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
- name: Build image | ||
|
@@ -92,7 +89,7 @@ jobs: | |
|
||
release: | ||
if: >- | ||
github.repository == 'ispg-group/aiidalab-ispg-docker-stack' | ||
github.repository_owner == 'ispg-group' | ||
&& (github.ref_type == 'tag' || github.ref_name == 'main') | ||
needs: | ||
- build | ||
|
@@ -127,9 +124,3 @@ jobs: | |
with: | ||
src: ${{ env.REGISTRY }}${{ env.ISPG_IMAGE }}@${{ needs.build.outputs.image_digest }} | ||
dst: ${{ steps.meta.outputs.tags }} | ||
|
||
- uses: softprops/[email protected] | ||
name: Create release | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
with: | ||
generate_release_notes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters