Skip to content

Automatically Build Release #29

Automatically Build Release

Automatically Build Release #29

Workflow file for this run

on:
workflow_run:
workflows: ["Integration"]
branches: [main]
types:
- completed
name: Build Docker Images
jobs:
build-runner:
name: Build Runner Docker Image
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Init Hermit
uses: cashapp/activate-hermit@v1
- name: Build
run: docker build -t $(git rev-parse --short HEAD) -t ghcr.io/tbd54566975/ftl-runner:latest -f Dockerfile.runner .
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push
if: github.ref == 'refs/heads/main'
run: docker push ghcr.io/tbd54566975/ftl-runner:latest
build-controller:
name: Build Controller Docker Image
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Init Hermit
uses: cashapp/activate-hermit@v1
- name: Build
run: docker build -t $(git rev-parse --short HEAD) -t ghcr.io/tbd54566975/ftl-controller:latest -f Dockerfile.controller .
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push
if: github.ref == 'refs/heads/main'
run: docker push ghcr.io/tbd54566975/ftl-controller:latest