Skip to content

Workflow file for this run

name: Build and push eidos Docker images
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build and push the Docker Image to the GitHub Container Registry
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push the Docker Image to the GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the base Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ghcr.io/khaosresearch/eidos:latest,ghcr.io/khaosresearch/eidos:${{ github.event.release.tag_name }}
- name: Build and push the lambda Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile.lambda
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: ghcr.io/khaosresearch/eidos-lambda:latest,ghcr.io/khaosresearch/eidos-lambda:${{ github.event.release.tag_name }}