Skip to content

Commit 8bc1fc0

Browse files
committed
fix Singularity files
1 parent e0c52c0 commit 8bc1fc0

File tree

5 files changed

+18
-34
lines changed

5 files changed

+18
-34
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- name: Install dependencies
3030
run: npm ci
3131
- run: npm run madge:circular
32+
3233
check-lint:
3334
name: Lint
3435
timeout-minutes: 5
@@ -49,6 +50,7 @@ jobs:
4950
- name: Install dependencies
5051
run: npm ci
5152
- run: npm run lint
53+
5254
check-tests:
5355
name: Tests
5456
timeout-minutes: 5

.github/workflows/image-release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ on:
55
tags: [ '*.*.*' ]
66

77
env:
8-
# Use docker.io for Docker Hub if empty
98
REGISTRY: docker.io
10-
# github.repository as <account>/<repo>
119
IMAGE_NAME: ${{ github.repository }}
1210

1311
concurrency:
@@ -32,26 +30,21 @@ jobs:
3230
- name: Set up Docker Buildx
3331
uses: docker/setup-buildx-action@v2
3432

35-
# Login against a Docker registry except on PR
36-
# https://github.com/docker/login-action
3733
- name: Log into dockerhub
3834
if: github.event_name != 'pull_request'
3935
uses: docker/login-action@v2
4036
with:
4137
username: ${{ secrets.DOCKERHUB_USERNAME }}
4238
password: ${{ secrets.DOCKERHUB_TOKEN }}
4339

44-
# Extract metadata (tags, labels) for Docker
45-
# https://github.com/docker/metadata-action
4640
- name: Extract Docker metadata
4741
id: meta
4842
uses: docker/metadata-action@v4
4943
with:
5044
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5145
flavor: |
5246
latest=true
53-
# Build and push Docker image with Buildx (don't push on PR)
54-
# https://github.com/docker/build-push-action
47+
5548
- name: Build and push Docker image
5649
uses: docker/build-push-action@v3
5750
with:
@@ -86,7 +79,12 @@ jobs:
8679
- name: Get release version
8780
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
8881

89-
- name: Create tag for Singularity
82+
- name: Update Singularity file tag
83+
if: github.event_name != 'pull_request'
84+
run: |
85+
sed -i "s/latest/$TAG/" ./Singularity
86+
87+
- name: Build Singularity image
9088
env:
9189
recipe: ${{ matrix.recipe }}
9290
run: |
@@ -106,10 +104,6 @@ jobs:
106104
ls
107105
fi
108106
109-
- name: Update Singularity file tag
110-
run: |
111-
sed -i "s/latest/$tag/" ./Singularity
112-
113107
- name: Login and Deploy Container
114108
#if: (github.event_name != 'pull_request')
115109
env:

.github/workflows/image.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
name: image
22

3-
# This workflow uses actions that are not certified by GitHub.
4-
# They are provided by a third-party and are governed by
5-
# separate terms of service, privacy policy, and support
6-
# documentation.
7-
83
on:
94
schedule:
105
- cron: '19 17 * * *'
@@ -14,9 +9,7 @@ on:
149
branches: [ main ]
1510

1611
env:
17-
# Use docker.io for Docker Hub if empty
1812
REGISTRY: docker.io
19-
# github.repository as <account>/<repo>
2013
IMAGE_NAME: ${{ github.repository }}
2114

2215
concurrency:
@@ -41,17 +34,13 @@ jobs:
4134
- name: Set up Docker Buildx
4235
uses: docker/setup-buildx-action@v2
4336

44-
# Login against a Docker registry except on PR
45-
# https://github.com/docker/login-action
4637
- name: Log into dockerhub
4738
if: github.event_name != 'pull_request'
4839
uses: docker/login-action@v2
4940
with:
5041
username: ${{ secrets.DOCKERHUB_USERNAME }}
5142
password: ${{ secrets.DOCKERHUB_TOKEN }}
5243

53-
# Extract metadata (tags, labels) for Docker
54-
# https://github.com/docker/metadata-action
5544
- name: Extract Docker metadata
5645
id: meta
5746
uses: docker/metadata-action@v4
@@ -60,8 +49,6 @@ jobs:
6049
flavor: |
6150
latest=false
6251
63-
# Build and push Docker image with Buildx (don't push on PR)
64-
# https://github.com/docker/build-push-action
6552
- name: Build and push Docker image
6653
uses: docker/build-push-action@v3
6754
with:
@@ -93,7 +80,12 @@ jobs:
9380
- name: Get build branch name
9481
run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
9582

96-
- name: Create tag for Singularity
83+
- name: Update Singularity file tag
84+
if: github.event_name != 'pull_request'
85+
run: |
86+
sed -i "s/latest/$TAG/" ./Singularity
87+
88+
- name: Build Singularity image
9789
if: ${{ env.keepgoing == 'true' }}
9890
env:
9991
recipe: ${{ matrix.recipe }}
@@ -113,10 +105,6 @@ jobs:
113105
ls
114106
fi
115107
116-
- name: Update Singularity file tag
117-
run: |
118-
sed -i "s/latest/$tag/" ./Singularity
119-
120108
- name: Login and Deploy Container
121109
if: (github.event_name != 'pull_request')
122110
env:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-hipaa-dashboard",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "The Parse-HIPAA Dashboard.",
55
"main": "./lib/index.js",
66
"repository": {

0 commit comments

Comments
 (0)