Skip to content

Commit

Permalink
test build and scan
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaidir32 authored Sep 5, 2024
1 parent da8c13b commit e155cf6
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,29 @@ on:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- uses: actions/checkout@v2
- name: Set env
run: echo "GITHUB_BRANCH=$(echo $GITHUB_REF_NAME-$GITHUB_SHA)" >> $GITHUB_ENV

- name: Build Docker image
run: |
docker buildx create --use
docker buildx inspect default --bootstrap
docker buildx build --file Dockerfile -t mhaidir32/node-js-sample-akash:$GITHUB_REF_NAME-$GITHUB_SHA --load .
container_scanning:
runs-on: ubuntu-latest
needs: test
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit e155cf6

Please sign in to comment.