Skip to content

Commit 2356e0e

Browse files
author
Thomas Luijken
committed
Added workflow for deploying to acr
1 parent c38d4ee commit 2356e0e

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Build docker container image"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- develop
8+
- main
9+
paths:
10+
- 'oxybox/src/**'
11+
- '.github/workflows/BUILD_AND_DEPLOY.yml'
12+
pull_request:
13+
branches:
14+
- develop
15+
- main
16+
paths:
17+
- 'oxybox/src/**'
18+
- '.github/workflows/BUILD_AND_DEPLOY.yml'
19+
20+
jobs:
21+
# validate that the docker image is built.
22+
# will only scan for vulnerabilities and push to acr on push events
23+
docker-build:
24+
name: Build docker image
25+
runs-on: baseflow-runner
26+
steps:
27+
- uses: actions/checkout@v4
28+
name: Checkout
29+
- uses: Baseflow/github-actions/docker@main
30+
name: Build docker image
31+
with:
32+
username: ${{ secrets.BASEFLOW_ACR_USERNAME }}
33+
password: ${{ secrets.BASEFLOW_ACR_PASSWORD }}
34+
push: ${{ github.event_name != 'pull_request' }}
35+
vulnerability_scan: ${{ github.event_name != 'pull_request' }}
36+
version: 1.0
37+
context: ./oxybox

0 commit comments

Comments
 (0)