Skip to content

Commit

Permalink
Merge pull request #199 from walt-id/update-docker-build
Browse files Browse the repository at this point in the history
Update docker build
  • Loading branch information
waltkb committed Mar 5, 2024
2 parents 17c6f26 + 309573d commit 0b156c9
Show file tree
Hide file tree
Showing 15 changed files with 85 additions and 411 deletions.
23 changes: 18 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
*/build
*/.nuxt
*/node_modules
*/Dockerfile
*/docker-compose*
*/.dockerignore
*/.git
*/.gitignore
*/README.md
*/LICENSE
*/.vscode
*/Makefile
*/helm-charts
#*/.env
*/.editorconfig
**/.idea
*/coverage*
.gradle
.idea
.run
**.md
**.png
**.jpeg
**.jpg
#**.md
#**.png
#**.jpeg
#**.jpg
*/k8s
54 changes: 54 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build on every push except main branch

on:
push:
branches-ignore:
- main


jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Setup cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build and push Docker images (issuer)
uses: docker/build-push-action@v4.0.0
with:
push: false
file: waltid-issuer-api/Dockerfile
#tags: waltid/issuer-api:latest, waltid/issuer-api:${{ env.release_version }}
- name: Build and push Docker images (verifier)
uses: docker/build-push-action@v4.0.0
with:
push: false
file: waltid-verifier-api/Dockerfile
#tags: waltid/verifier-api:latest, waltid/verifier-api:${{ env.release_version }}
- name: Build and push Docker images (wallet-api)
uses: docker/build-push-action@v4.0.0
with:
push: false
file: waltid-wallet-api/Dockerfile
#tags: waltid/wallet-api:latest, waltid/wallet-api:${{ env.release_version }}
- name: Build and push Docker images (waltid-web-wallet)
uses: docker/build-push-action@v4.0.0
with:
push: false
file: waltid-web-wallet/Dockerfile
#tags: waltid/waltid-web-wallet:latest, waltid/waltid-web-wallet:${{ env.release_version }}
- name: Build and push Docker images (wallet-portal)
uses: docker/build-push-action@v4
with:
push: false
file: waltid-web-portal/Dockerfile
#tags: waltid/portal:latest, waltid/portal:${{ env.release_version }}

6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v2.1.0
uses: actions/setup-java@v4
with:
distribution: 'adopt-hotspot'
java-version: '15'
distribution: 'temurin'
java-version: '21'
- name: Setup cache
uses: actions/cache@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
git tag v${{ env.release_version }}
git push --tags
- name: Setup java
uses: actions/setup-java@v2.1.0
uses: actions/setup-java@v4
with:
distribution: 'adopt-hotspot'
java-version: '15'
distribution: 'temurin'
java-version: '21'
- name: Setup cache
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -113,4 +113,4 @@ jobs:
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: apply -n dev -f waltid-web-portal/k8s/deployment_mod.yaml
args: apply -n dev -f waltid-web-portal/k8s/deployment_mod.yaml
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ secret*
**/*.db
/kotlin-js-store/
.idea/misc.xml
**/bun.lockb
#**/bun.lockb

**/.nuxt
**/.output
Expand Down
49 changes: 0 additions & 49 deletions waltid-mdoc-credentials/.github/workflows/build.yml

This file was deleted.

66 changes: 0 additions & 66 deletions waltid-mdoc-credentials/.github/workflows/lint-pr.yml

This file was deleted.

76 changes: 0 additions & 76 deletions waltid-mdoc-credentials/.github/workflows/release.yml

This file was deleted.

13 changes: 0 additions & 13 deletions waltid-mdoc-credentials/.github/workflows/stale.yml

This file was deleted.

49 changes: 0 additions & 49 deletions waltid-sdjwt/.github/workflows/build.yml

This file was deleted.

Loading

0 comments on commit 0b156c9

Please sign in to comment.