Skip to content

feat: add flux tracker #12

feat: add flux tracker

feat: add flux tracker #12

Workflow file for this run

name: build-and deploy
on:
pull_request: {}
release:
types: [published]
push:
branches:
- main
jobs:
build-state-machine-operator:
permissions:
packages: write
runs-on: ubuntu-latest
env:
container: ghcr.io/converged-computing/state-machine-operator
name: build state machine operator controller
steps:
- uses: actions/checkout@v4
- name: Build Container
run: make docker-build
- name: Tag Release Image
if: (github.event_name == 'release')
run: |
tag=${GITHUB_REF#refs/tags/}
echo "Tagging and releasing ${{ env.container}}:${tag}"
docker tag ${{ env.container }}:latest ${{ env.container }}:${tag}
- name: GHCR Login
if: (github.event_name != 'pull_request')
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy Container
if: (github.event_name != 'pull_request')
run: docker push ${{ env.container }} --all-tags