-
Notifications
You must be signed in to change notification settings - Fork 56
52 lines (46 loc) · 1.3 KB
/
container.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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build Image
on:
push:
branches:
- master
tags:
- "v*"
workflow_dispatch:
branches:
- master
env:
REGISTRY: quay.io
IMAGE_BASE: quay.io/keylime
jobs:
build-images:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Generate docker metadata for keylime_agent
id: meta_agent
uses: docker/metadata-action@v5
with:
images: |
${{ env.IMAGE_BASE }}/keylime_agent
tags: |
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
type=ref,enable=true,priority=600,prefix=,suffix=,event=tag
type=sha,prefix=sha-
- name: Build and push agent image
id: build_agent
uses: docker/build-push-action@v5
env:
VERSION: "${{ steps.meta_base.outputs.version }}"
with:
context: .
file: docker/release/Dockerfile.fedora
push: true
tags: ${{ steps.meta_agent.outputs.tags }}
labels: ${{ steps.meta_agent.outputs.labels }}