Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deployment of container images #386

Merged
merged 2 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Publish Docker image

# Controls when the action will run.
on:
push:
tags:
- "v*"
release:
types: [published, created]
# Triggers the workflow on push or pull request events but only for the main branch
create:

jobs:
push_to_registry:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/singularity.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Publish Singularity image

# Controls when the action will run.
on:
push:
tags:
- "v*"
release:
types: [published, created]
# Triggers the workflow on push or pull request events but only for the main branch
create:

jobs:

build:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: Build
runs-on: ubuntu-18.04
strategy:
Expand Down Expand Up @@ -38,6 +36,7 @@ jobs:
fi

deploy:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
name: Deploy
runs-on: ubuntu-18.04
strategy:
Expand All @@ -63,4 +62,4 @@ jobs:
- name: Deploy Container
run: |
sudo pip3 install sregistry
SREGISTRY_CLIENT=registry sregistry push --name cylon-x/lcsb-biocore cobrexa.sif
SREGISTRY_CLIENT=registry sregistry push --name cylon-x/lcsb-biocore cobrexa.sif