Skip to content

Build container

Build container #2

# This workflow builds a container on manual trigger
name: Build container
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
env:
CONTAINER_REGISTRY: ghcr.io
CONTAINER_REGISTRY_USER: ${{ github.actor }}
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
environment: dockerhub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build container
run: ./scripts/container.sh build
- name: Test container
run: ./scripts/container.sh autotest
- name: Login to registroy
uses: redhat-actions/podman-login@v1
with:
registry: ${{ env.CONTAINER_REGISTRY }}
username: ${{ env.CONTAINER_REGISTRY_USER }}
password: ${{ env.CONTAINER_REGISTRY_PASSWORD }}
- name: Push container
run: ./scripts/container.sh push