Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Upgrade deps + new check-version action (#98)
Browse files Browse the repository at this point in the history
* use c8

* add docker build test
  • Loading branch information
jonmattgray authored Aug 29, 2023
1 parent 6399345 commit 081b588
Show file tree
Hide file tree
Showing 8 changed files with 2,647 additions and 1,681 deletions.
File renamed without changes.
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,11 @@ jobs:

steps:
- uses: actions/checkout@v3
- run: git fetch --depth=1 --tags origin
- name: Install yq
run: sudo snap install yq
- name: Check Build Version
- name: Check version
id: get_version
run: ./scripts/check-version.sh
shell: bash
- name: Skipping release as version has not increased
if: steps.get_version.outputs.IS_NEW_VERSION != 'true'
shell: bash
run: |
echo "Skipping release as current version has already been published"
uses: digicatapult/check-version@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

publish:
name: 'Publish package'
Expand Down
45 changes: 35 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,39 @@ jobs:

steps:
- uses: actions/checkout@v3
- run: git fetch --depth=1 --tags origin
- name: Install yq
run: sudo snap install yq
- name: Check Build Version
- name: Check version
id: get_version
run: ./scripts/check-version.sh
shell: bash
- name: Error if version is not increased
shell: bash
run: |
exit $([[ "${{steps.get_version.outputs.IS_NEW_VERSION}}" = "true" ]] && echo 0 || echo 1)
uses: digicatapult/check-version@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

docker-build:
name: 'Build docker image'
needs:
- lint
- tests
- check-version
- dependency-check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# Docker build
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: '--debug'
- name: Publish multi-arch image
uses: docker/build-push-action@v4
with:
push: false
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
platforms: linux/amd64, linux/arm64
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ node_modules/

# Test coverage
coverage
.nyc_output
coverage.json

# Logs
Expand All @@ -19,8 +18,6 @@ npm-debug.log*
!.vscode/extensions.json
.idea/

helm/**/*.tgz

# Misc
.DS_Store
.env
Expand Down
7 changes: 3 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
ipfs:
image: ipfs/go-ipfs:v0.19.0
image: ipfs/go-ipfs:v0.22.0
environment:
- |
IPFS_SWARM_KEY=/key/swarm/psk/1.0.0/
Expand All @@ -12,7 +12,7 @@ services:
- 8080:8080
- 5001:5001
ipfs-2:
image: ipfs/go-ipfs:v0.19.0
image: ipfs/go-ipfs:v0.22.0
environment:
- |
IPFS_SWARM_KEY=/key/swarm/psk/1.0.0/
Expand All @@ -24,8 +24,7 @@ services:
- 5002:5001
dscp-node:
image: digicatapult/dscp-node:latest
command:
--base-path /data/
command: --base-path /data/
--dev
--unsafe-ws-external
--unsafe-rpc-external
Expand Down
Loading

0 comments on commit 081b588

Please sign in to comment.