Skip to content

add Github Actions to release CL2 #2

add Github Actions to release CL2

add Github Actions to release CL2 #2

name: Build and Push Docker Image for clusterloader2
on:
push:
branches:
- main
- official/v*
paths:
- "clusterloader2/**"
tags:
- "v*"
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
run: |
cd clusterloader2
make build-image
make push-image
env:
IMAGE_REPO: ghcr.io/${{ github.repository_owner }}
IMAGE_TAG: ${{ github.ref_name }}