Skip to content

Commit

Permalink
Switched to using the npmjs registry version of our package, removed …
Browse files Browse the repository at this point in the history
…github registry information (#35)
  • Loading branch information
dblane-digicatapult authored Jul 14, 2022
1 parent 7d87632 commit b471c06
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 42 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ jobs:
context: .
load: true
file: ./Dockerfile
secrets: |
github=${{ secrets.GITHUB_TOKEN }}
tags: |
${{ needs.preconditions.outputs.repo_name }}:latest
labels: |
Expand Down Expand Up @@ -123,8 +121,6 @@ jobs:
${{ runner.OS }}-
- name: Install Packages
run: npm ci
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint
run: npm run lint
dependency-check:
Expand All @@ -148,8 +144,6 @@ jobs:
${{ runner.OS }}-
- name: Install Packages
run: npm ci
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Dependency Check
run: npm run depcheck
tests:
Expand All @@ -173,8 +167,6 @@ jobs:
${{ runner.OS }}-
- name: Install Packages
run: npm ci
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup dependencies
run: docker-compose up -d
- name: Sleep
Expand Down Expand Up @@ -246,8 +238,6 @@ jobs:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
secrets: |
github=${{ secrets.GITHUB_TOKEN }}
platforms: linux/amd64
tags: |
ghcr.io/${{ needs.preconditions.outputs.org_name }}/${{ needs.preconditions.outputs.repo_name }}:${{ needs.check-version.outputs.version }}
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ jobs:
context: .
load: true
file: ./Dockerfile
secrets: |
github=${{ secrets.GITHUB_TOKEN }}
tags: |
${{ needs.repo_ids.outputs.repo_name }}:latest
labels: |
Expand Down Expand Up @@ -116,8 +114,6 @@ jobs:
${{ runner.OS }}-
- name: Install Packages
run: npm ci
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint
run: npm run lint
dependency-check:
Expand All @@ -140,8 +136,6 @@ jobs:
${{ runner.OS }}-
- name: Install Packages
run: npm ci
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Dependency Check
run: npm run depcheck

Expand All @@ -165,8 +159,6 @@ jobs:
${{ runner.OS }}-
- name: Install Packages
run: npm ci
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup dependencies
run: docker-compose up -d
- name: Sleep
Expand Down
4 changes: 0 additions & 4 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ WORKDIR /dscp-ipfs

# Install base dependencies
COPY . .
RUN --mount=type=secret,id=github GITHUB_PACKAGE_TOKEN=$(cat /run/secrets/github) npm ci --production
RUN npm ci --production

ENV IPFS_PATH=/ipfs

Expand Down
6 changes: 3 additions & 3 deletions helm/dscp-ipfs/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: dscp-node
repository: https://digicatapult.github.io/dscp-node/
version: 4.0.0
digest: sha256:75cd1f032cbcfa1222df6c5058cb82e3933d6646f317d5111e3f4082bcd29306
generated: "2022-07-12T13:42:53.570998+01:00"
version: 4.1.0
digest: sha256:a950bd86eaea820ed79a8446872e3f7d3dc348a7ebb8b1941ec78353a2533937
generated: "2022-07-14T15:39:22.314984+01:00"
6 changes: 3 additions & 3 deletions helm/dscp-ipfs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v2
name: dscp-ipfs
appVersion: '2.3.0'
appVersion: '2.4.0'
description: A Helm chart for dscp-ipfs
version: '2.3.0'
version: '2.4.0'
type: application
dependencies:
- name: dscp-node
version: '4.0.0'
version: '4.1.0'
repository: https://digicatapult.github.io/dscp-node/
condition: dscpNode.enabled
alias: dscpNode
Expand Down
2 changes: 1 addition & 1 deletion helm/dscp-ipfs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ statefulSet:
image:
repository: ghcr.io/digicatapult/dscp-ipfs
pullPolicy: IfNotPresent
tag: 'v2.3.0'
tag: 'v2.4.0'

storage:
storageClass: ""
Expand Down
23 changes: 13 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@digicatapult/dscp-ipfs",
"version": "2.3.0",
"version": "2.4.0",
"description": "Service for WASP",
"main": "app/index.js",
"scripts": {
Expand Down Expand Up @@ -31,7 +31,7 @@
},
"homepage": "https://github.com/digicatapult/dscp-ipfs#readme",
"dependencies": {
"@digicatapult/dscp-node": "^4.0.0",
"@digicatapult/dscp-node": "^4.1.0",
"dotenv": "^8.2.0",
"envalid": "^7.0.0",
"express": "^4.17.1",
Expand Down

0 comments on commit b471c06

Please sign in to comment.