Skip to content

Commit

Permalink
add Github Actions to release CL2
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssa1303 committed Oct 2, 2024
1 parent ba0ca7b commit 93b6b8a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/clusterloader2-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Push Docker Image for clusterloader2

on:
push:
branches:
- main
- official/v*
paths:
- "clusterloader2/**"
tags:
- "v*"

env:
IMAGE_REPO: ghcr.io/${{ github.repository_owner }}
IMAGE_TAG: ${{ github.ref_name }}

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

0 comments on commit 93b6b8a

Please sign in to comment.