Fix minor typo, format and remove end whitespaces #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
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@v4 | |
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@v4 | |
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 }} |