Skip to content

Hydra

Hydra #14

Workflow file for this run

name: Hydra
on:
push:
branches:
- "main"
paths:
- ".github/workflows/hydra.yml"
- "docker/dockerfile.hydra"
workflow_dispatch:
inputs:
HCP_BRANCH:
description: "Hydra Control Plane branch to build"
required: false
type: string
default: "main"
jobs:
build-images:
strategy:
fail-fast: false
matrix:
include:
- context: .
file: docker/dockerfile.hydra
endpoint: demeter-run/doom-patrol-hydra
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ${{ matrix.context }}
file: ${{ matrix.file }}
platforms: linux/amd64
push: true
build-args: BRANCH=${{ github.event.inputs.HCP_BRANCH }}
tags:
ghcr.io/${{ matrix.endpoint }},ghcr.io/${{ matrix.endpoint }}:${{
github.sha }}