-
Notifications
You must be signed in to change notification settings - Fork 88
39 lines (34 loc) · 1.08 KB
/
as-dockerbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: AS & RVPS Container image build test
on:
push:
branches:
- "main"
paths:
- 'attestation-service/**'
- '.github/workflows/as-dockerbuild.yml'
- 'Cargo.toml'
pull_request:
paths:
- 'attestation-service/**'
- '.github/workflows/as-dockerbuild.yml'
- 'Cargo.toml'
create:
jobs:
basic_ci:
if: github.event_name == 'pull_request' || github.event_name == 'push'
name: Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Code checkout
uses: actions/checkout@v4
- name: Build gRPC AS Container Image
run: |
DOCKER_BUILDKIT=1 docker build -t attestation-service:latest . -f attestation-service/attestation-service/Dockerfile.grpc
- name: Build RESTful AS Container Image
run: |
DOCKER_BUILDKIT=1 docker build -t attestation-service:latest . -f attestation-service/attestation-service/Dockerfile.restful
- name: Build RVPS Container Image
run: |
Docker_BUILDKIT=1 docker build -t rvps:latest . -f attestation-service/rvps/Dockerfile