forked from wwWallet/wallet-ecosystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from gunet/gunet-workflows
Gunet workflows
- Loading branch information
Showing
18 changed files
with
329 additions
and
6 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
20 changes: 20 additions & 0 deletions
20
.github/workflows/docker-image-wallet-enterprise-acme-verifier.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build Docker image | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- dc4eu-rome | ||
pull_request: | ||
|
||
jobs: | ||
build-acme: | ||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
uses: ./.github/workflows/docker-build-push.yml | ||
secrets: inherit | ||
with: | ||
image-tag: ghcr.io/gunet/wallet-enterprise-acme-verifier:latest | ||
docker-push: false | ||
dockerfile-path: ./wallet-enterprise-configurations/acme-verifier/Dockerfile |
20 changes: 20 additions & 0 deletions
20
.github/workflows/docker-image-wallet-enterprise-ehic-issuer.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build Docker image | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- dc4eu-rome | ||
pull_request: | ||
|
||
jobs: | ||
build-ehic: | ||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
uses: ./.github/workflows/docker-build-push.yml | ||
secrets: inherit | ||
with: | ||
image-tag: ghcr.io/gunet/wallet-enterprise-ehic-issuer:latest | ||
docker-push: false | ||
dockerfile-path: ./wallet-enterprise-configurations/ehic-issuer/Dockerfile |
20 changes: 20 additions & 0 deletions
20
.github/workflows/docker-image-wallet-enterprise-pda1-issuer.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build Docker image | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- dc4eu-rome | ||
pull_request: | ||
|
||
jobs: | ||
build-pda1: | ||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
uses: ./.github/workflows/docker-build-push.yml | ||
secrets: inherit | ||
with: | ||
image-tag: ghcr.io/gunet/wallet-enterprise-pda1-issuer:latest | ||
docker-push: false | ||
dockerfile-path: ./wallet-enterprise-configurations/pda1-issuer/Dockerfile |
20 changes: 20 additions & 0 deletions
20
.github/workflows/docker-image-wallet-enterprise-vid-issuer.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build Docker image | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- dc4eu-rome | ||
pull_request: | ||
|
||
jobs: | ||
build-vid: | ||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
uses: ./.github/workflows/docker-build-push.yml | ||
secrets: inherit | ||
with: | ||
image-tag: ghcr.io/gunet/wallet-enterprise-vid-issuer:latest | ||
docker-push: false | ||
dockerfile-path: ./wallet-enterprise-configurations/vid-issuer/Dockerfile |
20 changes: 20 additions & 0 deletions
20
.github/workflows/docker-push-wallet-enterprise-acme-verifier.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Push Docker image | ||
on: | ||
push: | ||
tags: | ||
- v0.* | ||
- v1.* | ||
- v2.* | ||
|
||
jobs: | ||
push-acme: | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
uses: ./.github/workflows/docker-build-push.yml | ||
secrets: inherit | ||
with: | ||
image-tag: ghcr.io/gunet/wallet-enterprise-acme-verifier:${{ github.ref_name }} | ||
docker-push: true | ||
dockerfile-path: ./wallet-enterprise-configurations/acme-verifier/Dockerfile |
20 changes: 20 additions & 0 deletions
20
.github/workflows/docker-push-wallet-enterprise-ehic-issuer.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Push Docker image | ||
on: | ||
push: | ||
tags: | ||
- v0.* | ||
- v1.* | ||
- v2.* | ||
|
||
jobs: | ||
push-ehic: | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
uses: ./.github/workflows/docker-build-push.yml | ||
secrets: inherit | ||
with: | ||
image-tag: ghcr.io/gunet/wallet-enterprise-ehic-issuer:${{ github.ref_name }} | ||
docker-push: true | ||
dockerfile-path: ./wallet-enterprise-configurations/ehic-issuer/Dockerfile |
20 changes: 20 additions & 0 deletions
20
.github/workflows/docker-push-wallet-enterprise-pda1-issuer.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Push Docker image | ||
on: | ||
push: | ||
tags: | ||
- v0.* | ||
- v1.* | ||
- v2.* | ||
|
||
jobs: | ||
push-pda1: | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
uses: ./.github/workflows/docker-build-push.yml | ||
secrets: inherit | ||
with: | ||
image-tag: ghcr.io/gunet/wallet-enterprise-pda1-issuer:${{ github.ref_name }} | ||
docker-push: true | ||
dockerfile-path: ./wallet-enterprise-configurations/pda1-issuer/Dockerfile |
20 changes: 20 additions & 0 deletions
20
.github/workflows/docker-push-wallet-enterprise-vid-issuer.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Push Docker image | ||
on: | ||
push: | ||
tags: | ||
- v0.* | ||
- v1.* | ||
- v2.* | ||
|
||
jobs: | ||
push-vid: | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
uses: ./.github/workflows/docker-build-push.yml | ||
secrets: inherit | ||
with: | ||
image-tag: ghcr.io/gunet/wallet-enterprise-vid-issuer:${{ github.ref_name }} | ||
docker-push: true | ||
dockerfile-path: ./wallet-enterprise-configurations/vid-issuer/Dockerfile |
Submodule resources-vault
updated
from 335cbf to 69b6a5
Submodule wallet-backend-server
updated
2 files
+3 −1 | .github/workflows/docker-image.yml | |
+9 −6 | .github/workflows/docker-push.yml |
Submodule wallet-enterprise
updated
6 files
+21 −0 | .github/workflows/docker-base-image.yml | |
+22 −0 | .github/workflows/docker-base-push.yml | |
+2 −0 | .github/workflows/docker-image.yml | |
+9 −5 | .github/workflows/docker-push.yml | |
+1 −1 | Dockerfile | |
+5 −0 | base.Dockerfile |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Builder stage | ||
FROM ghcr.io/gunet/wallet-enterprise:base AS builder | ||
WORKDIR /app | ||
|
||
|
||
RUN rm -rf /app/src/configuration/ | ||
|
||
COPY ./wallet-enterprise-configurations/acme-verifier/src/configuration src/configuration | ||
COPY ./wallet-enterprise-configurations/acme-verifier/public/styles/styles.css public/styles/styles.css | ||
COPY ./wallet-enterprise-configurations/acme-verifier/views/index.pug views/index.pug | ||
COPY ./wallet-enterprise-configurations/acme-verifier/views/header.pug views/header.pug | ||
COPY ./wallet-enterprise-configurations/acme-verifier/views/verifier/public_definitions.pug views/verifier/public_definitions.pug | ||
COPY ./wallet-enterprise-configurations/acme-verifier/views/verifier/QR.pug views/verifier/QR.pug | ||
COPY ./wallet-enterprise-configurations/acme-verifier/views/verifier/success.pug views/verifier/success.pug | ||
COPY ./wallet-enterprise-configurations/acme-verifier/public/images public/images | ||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install && yarn build | ||
|
||
# Production stage | ||
FROM node:16-bullseye-slim AS production | ||
WORKDIR /app | ||
|
||
COPY --from=builder /app/package.json . | ||
COPY --from=builder /app/dist ./dist | ||
COPY --from=builder /app/public ./public | ||
COPY --from=builder /app/views/ ./views/ | ||
|
||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install --production | ||
|
||
|
||
ENV NODE_ENV production | ||
EXPOSE 8003 | ||
|
||
CMD ["node", "./dist/src/app.js"] |
32 changes: 32 additions & 0 deletions
32
wallet-enterprise-configurations/diploma-issuer/Dockerfile
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Builder stage | ||
FROM ghcr.io/gunet/wallet-enterprise:base AS builder | ||
WORKDIR /app | ||
|
||
COPY wallet-enterprise/ . | ||
RUN rm -rf src/configuration/ | ||
COPY ./wallet-enterprise-configurations/diploma-issuer/src/configuration /app/src/configuration | ||
COPY ./wallet-enterprise-configurations/diploma-issuer/views/issuer/login.pug /app/views/issuer/login.pug | ||
COPY ./wallet-enterprise-configurations/diploma-issuer/public/styles/styles.css /app/public/styles/styles.css | ||
COPY ./wallet-enterprise-configurations/diploma-issuer/public/images /app/public/images | ||
COPY ./wallet-enterprise-configurations/diploma-issuer/views/header.pug /app/views/header.pug | ||
COPY ./wallet-enterprise-configurations/diploma-issuer/views/index.pug /app/views/index.pug | ||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install && yarn build | ||
|
||
# Production stage | ||
FROM node:16-bullseye-slim AS production | ||
WORKDIR /app | ||
|
||
COPY --from=builder /app/package.json . | ||
COPY --from=builder /app/dist/ ./dist/ | ||
COPY --from=builder /app/public/ ./public/ | ||
COPY --from=builder /app/views/ ./views/ | ||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install --production | ||
|
||
ENV NODE_ENV production | ||
EXPOSE 8003 | ||
|
||
CMD ["node", "./dist/src/app.js"] |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Builder stage | ||
FROM ghcr.io/gunet/wallet-enterprise:base AS builder | ||
WORKDIR /app | ||
|
||
RUN rm -rf src/configuration/ | ||
COPY ./wallet-enterprise-configurations/ehic-issuer/public/styles/styles.css public/styles/styles.css | ||
COPY ./wallet-enterprise-configurations/ehic-issuer/src/configuration src/configuration | ||
COPY ./wallet-enterprise-configurations/ehic-issuer/views/header.pug views/header.pug | ||
COPY ./wallet-enterprise-configurations/ehic-issuer/views/index.pug views/index.pug | ||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install && yarn build | ||
|
||
# Production stage | ||
FROM node:16-bullseye-slim AS production | ||
WORKDIR /app | ||
|
||
COPY --from=builder /app/package.json . | ||
COPY --from=builder /app/dist/ ./dist/ | ||
COPY --from=builder /app/public/ ./public/ | ||
COPY --from=builder /app/views/ ./views/ | ||
|
||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install --production | ||
|
||
ENV NODE_ENV production | ||
EXPOSE 8003 | ||
|
||
CMD ["node", "./dist/src/app.js"] |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Builder stage | ||
FROM ghcr.io/gunet/wallet-enterprise:base AS builder | ||
WORKDIR /app | ||
|
||
RUN rm -rf src/configuration/ | ||
COPY ./wallet-enterprise-configurations/pda1-issuer/src/configuration src/configuration | ||
COPY ./wallet-enterprise-configurations/pda1-issuer/views/header.pug views/header.pug | ||
COPY ./wallet-enterprise-configurations/pda1-issuer/public/styles/styles.css public/styles/styles.css | ||
COPY ./wallet-enterprise-configurations/pda1-issuer/views/index.pug views/index.pug | ||
|
||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install && yarn build | ||
|
||
# Production stage | ||
FROM node:16-bullseye-slim AS production | ||
WORKDIR /app | ||
|
||
COPY --from=builder /app/package.json . | ||
COPY --from=builder /app/dist/ ./dist/ | ||
COPY --from=builder /app/public/ ./public/ | ||
COPY --from=builder /app/views/ ./views/ | ||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install --production | ||
|
||
ENV NODE_ENV production | ||
EXPOSE 8003 | ||
|
||
CMD ["node", "./dist/src/app.js"] |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Builder stage | ||
FROM ghcr.io/gunet/wallet-enterprise:base AS builder | ||
WORKDIR /app | ||
|
||
RUN rm -rf src/configuration/ | ||
COPY ./wallet-enterprise-configurations/vid-issuer/src/configuration src/configuration:rw | ||
COPY ./wallet-enterprise-configurations/vid-issuer/public/styles/styles.css public/styles/styles.css | ||
COPY ./wallet-enterprise-configurations/vid-issuer/public/images public/images | ||
COPY ./wallet-enterprise-configurations/vid-issuer/views/header.pug views/header.pug | ||
COPY ./wallet-enterprise-configurations/vid-issuer/views/index.pug views/index.pug | ||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install && yarn build | ||
|
||
# Production stage | ||
FROM node:16-bullseye-slim AS production | ||
WORKDIR /app | ||
|
||
COPY --from=builder /app/package.json . | ||
COPY --from=builder /app/dist/ ./dist/ | ||
COPY --from=builder /app/public/ ./public/ | ||
COPY --from=builder /app/views/ ./views/ | ||
|
||
RUN --mount=type=secret,id=npmrc,required=true,target=./.npmrc,uid=1000 \ | ||
yarn cache clean && yarn install --production | ||
|
||
ENV NODE_ENV production | ||
EXPOSE 8003 | ||
|
||
CMD ["node", "./dist/src/app.js"] |
Submodule wallet-frontend
updated
54 files