Skip to content

Commit

Permalink
invalid syntax
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Aug 4, 2021
1 parent 18c974b commit 97625a4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 18 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: Singularity Build (docker)
on: [push]
on:
push:

# Edit the branches here if you want to change deploy behavior
branches:
- main

# Do the builds on all pull requests (to test them)
pull_request: []

jobs:

build:
Expand All @@ -8,7 +17,7 @@ jobs:
strategy:
matrix:
singularity_version:
- '3.5.3'
- '3.8.1'
container:
image: quay.io/singularity/singularity:v${{ matrix.singularity_version }}
options: --privileged
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/native-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ jobs:
echo "keepgoing=true" >> $GITHUB_ENV
fi
- uses: eWaterCycle/setup-singularity@v6
with:
singularity-version: 3.8.1
- uses: eWaterCycle/setup-singularity@v6
with:
singularity-version: 3.8.1

- name: Check out code for the container build
uses: actions/checkout@v2
- name: Check out code for the container build
uses: actions/checkout@v2

- name: Build Container
env:
recipe: ${{ matrix.changed_file }}
run: |
ls
if [ -f "${{ matrix.changed_file }}" ]; then
- name: Build Container
env:
recipe: ${{ matrix.changed_file }}
run: |
ls
if [ -f "${{ matrix.changed_file }}" ]; then
sudo -E singularity build container.sif ${{ matrix.changed_file }}
tag=$(echo "${recipe/Singularity\./}")
if [ "$tag" == "Singularity" ]; then
Expand All @@ -62,14 +62,14 @@ jobs:
# Build the container and name by tag
echo "Tag is $tag."
echo "tag=$tag" >> $GITHUB_ENV
else
else
echo "${{ matrix.changed_file }} is not found."
echo "Present working directory: $PWD"
ls
fi
fi
- name: Login and Deploy Container
if: (github.event_name != 'pull_request')
run: |
- name: Login and Deploy Container
if: (github.event_name != 'pull_request')
run: |
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login ghcr.io -u ${GITHUB_USERNAME} --password-stdin
singularity push container.sif oras://${GITHUB_REPOSITORY}:${tag}

0 comments on commit 97625a4

Please sign in to comment.