Skip to content

Commit

Permalink
Add buildx setup step in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kgapos committed Oct 25, 2023
1 parent b4e2e5b commit 30b7d46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
name: GitLeaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
Expand All @@ -22,7 +23,8 @@ jobs:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
Expand All @@ -35,14 +37,14 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build docker image
run: |
export DOCKER_BUILDKIT=1
docker buildx create --use
docker build . -t node-healthcheck:latest
run: docker build . -t node-healthcheck:latest
- name: Run docker image
run: docker run -d -p 11012:11012 -e NODE_URL=https://mainnet.vechain.org --name node-healthcheck node-healthcheck:latest
- name: Smoke test
Expand Down
1 change: 1 addition & 0 deletions src/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules

0 comments on commit 30b7d46

Please sign in to comment.