This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating deps, charts, added multi-arch-build (#61)
* Updating deps, charts, added multi-arch-build * Updated tests
- Loading branch information
1 parent
3bc437d
commit ae069d4
Showing
11 changed files
with
2,888 additions
and
2,700 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,19 +76,36 @@ jobs: | |
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
- name: Setup Minikube | ||
uses: manusa/actions-setup-minikube@v2.3.0 | ||
uses: manusa/actions-setup-minikube@v2.7.1 | ||
with: | ||
minikube version: 'v1.17.1' | ||
kubernetes version: 'v1.19.2' | ||
- name: Login to minikube docker registry | ||
run: eval $(minikube -p minikube docker-env) | ||
- name: Build and Publish image | ||
- name: Build Multi-arch | ||
uses: docker/build-push-action@v3 | ||
with: | ||
builder: ${{ steps.buildx.outputs.name }} | ||
context: . | ||
load: false | ||
file: ./Dockerfile | ||
platforms: linux/amd64, linux/arm64 | ||
tags: | | ||
${{ needs.preconditions.outputs.repo_name }}:latest | ||
labels: | | ||
org.opencontainers.image.title=${{ needs.preconditions.outputs.repo_name }} | ||
org.opencontainers.image.description=${{ github.event.repository.description }} | ||
org.opencontainers.image.source=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.url=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
- name: Load and push image for testing | ||
uses: docker/build-push-action@v3 | ||
with: | ||
builder: ${{ steps.buildx.outputs.name }} | ||
context: . | ||
load: true | ||
file: ./Dockerfile | ||
platforms: linux/amd64 | ||
tags: | | ||
${{ needs.preconditions.outputs.repo_name }}:latest | ||
labels: | | ||
|
@@ -250,7 +267,7 @@ jobs: | |
builder: ${{ steps.buildx.outputs.name }} | ||
context: . | ||
file: ./Dockerfile | ||
platforms: linux/amd64 | ||
platforms: linux/amd64, linux/arm64 | ||
tags: | | ||
ghcr.io/${{ needs.preconditions.outputs.org_name }}/${{ needs.preconditions.outputs.repo_name }}:${{ needs.check-version.outputs.version }} | ||
${{ needs.preconditions.outputs.org_name }}/${{ needs.preconditions.outputs.repo_name }}:${{ needs.check-version.outputs.version }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,19 +70,36 @@ jobs: | |
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
- name: Setup Minikube | ||
uses: manusa/actions-setup-minikube@v2.3.0 | ||
uses: manusa/actions-setup-minikube@v2.7.1 | ||
with: | ||
minikube version: 'v1.17.1' | ||
kubernetes version: 'v1.19.2' | ||
- name: Login to minikube docker registry | ||
run: eval $(minikube -p minikube docker-env) | ||
- name: Build and Publish image | ||
- name: Build Multi-arch | ||
uses: docker/build-push-action@v3 | ||
with: | ||
builder: ${{ steps.buildx.outputs.name }} | ||
context: . | ||
load: false | ||
file: ./Dockerfile | ||
platforms: linux/amd64, linux/arm64 | ||
tags: | | ||
${{ needs.repo_ids.outputs.repo_name }}:latest | ||
labels: | | ||
org.opencontainers.image.title=${{ needs.repo_ids.outputs.repo_name }} | ||
org.opencontainers.image.description=${{ github.event.repository.description }} | ||
org.opencontainers.image.source=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.url=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
- name: Load and push image for testing | ||
uses: docker/build-push-action@v3 | ||
with: | ||
builder: ${{ steps.buildx.outputs.name }} | ||
context: . | ||
load: true | ||
file: ./Dockerfile | ||
platforms: linux/amd64 | ||
tags: | | ||
${{ needs.repo_ids.outputs.repo_name }}:latest | ||
labels: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
FROM node:16-alpine | ||
|
||
COPY . . | ||
|
||
ARG TARGETPLATFORM | ||
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then apk add --no-cache python3 make g++; fi | ||
RUN npm install -g [email protected] | ||
|
||
RUN npm ci --prod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
dependencies: | ||
- name: dscp-node | ||
repository: https://digicatapult.github.io/dscp-node/ | ||
version: 4.2.1 | ||
version: 4.4.6 | ||
- name: dscp-ipfs | ||
repository: https://digicatapult.github.io/dscp-ipfs/ | ||
version: 2.6.1 | ||
digest: sha256:5a53d52e877741408a0c446ea2bd0f2d618a4cbab3b4b607b87f6cbc3a10bcf5 | ||
generated: "2022-07-21T10:34:29.668579+01:00" | ||
version: 2.6.3 | ||
digest: sha256:6b5d7ca4028948880f3b9cd87d151f67fdfea56a6ff7276656e5cac143a9d151 | ||
generated: "2022-11-18T11:05:37.827523Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.