Skip to content

Commit

Permalink
ci: GHA to build images
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Dec 20, 2023
1 parent bed088b commit dd98f51
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/release-chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: Release Charts

on:
push:
tags:
- v*

jobs:
release:
runs-on: ubuntu-latest
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/release-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release Images
on:
push:
tags:
- "*-d2iq.*"

# Because variables are not exported, they are not visible by child processes, e.g. make
env:
registry: ghcr.io/mesosphere

jobs:
release-controller-image:
name: Release Controller Image
runs-on:
- ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Login to container registry
uses: docker/login-action@v2
with:
registry: ${{ env.registry }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push container image
env:
IMAGE: ${{ env.registry }}/metallb/controller:${{ github.ref_name }}
run: docker buildx build -t ${{ env.IMAGE }} --push controller/
release-speaker-image:
name: Release Speaker Image
runs-on:
- ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Login to container registry
uses: docker/login-action@v2
with:
registry: ${{ env.registry }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push container image
env:
IMAGE: ${{ env.registry }}/metallb/speaker:${{ github.ref_name }}
run: docker buildx build -t ${{ env.IMAGE }} --push speaker/

0 comments on commit dd98f51

Please sign in to comment.