Skip to content

Commit

Permalink
chore: refactor docker build dev
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanFl committed Jan 13, 2025
1 parent 0de32b3 commit 1570ab8
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/build_push_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: workflow_dispatch
permissions: read-all

jobs:
docker:
docker_backend_dev:
runs-on: ubuntu-latest
steps:
-
Expand Down Expand Up @@ -38,6 +38,28 @@ jobs:
CREATED=${{ env.CREATED }}
REVISION=${{ github.sha }}
VERSION=dev
docker_frontend_dev:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
-
name: Set up QEMU
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
-
name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set current date as env variable
run: echo "CREATED=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
-
name: Build and push frontend
uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
Expand All @@ -50,6 +72,11 @@ jobs:
CREATED=${{ env.CREATED }}
REVISION=${{ github.sha }}
VERSION=dev
sca_dev:
runs-on: ubuntu-latest
needs: [docker_backend_dev, docker_frontend_dev]
steps:
-
name: Run SCA vulnerability scanners
uses: MaibornWolff/secobserve_actions_templates/actions/vulnerability_scanner@a8344daa56598a80c2c80081974a0468dd29d086 # main
Expand Down

0 comments on commit 1570ab8

Please sign in to comment.