Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 35cd076

Browse files
committed
ensure assets are released
1 parent 4df79fe commit 35cd076

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
types: [opened, synchronize, reopened]
55
push:
66
branches:
7-
- master
7+
- master
8+
tags:
9+
- 'v*'
810

911
jobs:
1012
report:
@@ -15,7 +17,7 @@ jobs:
1517
run: echo ${{ github.ref }}
1618
- name: event_name
1719
run: echo ${{ github.event_name }}
18-
build:
20+
build-test-deploy-release:
1921
name: Build
2022
runs-on: ubuntu-latest
2123
steps:
@@ -45,7 +47,10 @@ jobs:
4547
run: make image-all KUBEBUILDER_DIR=${KUBEBUILDER_DIR}
4648
env:
4749
KUBEBUILDER_ASSETS: ${{ env.KUBEBUILDER_DIR }}/bin
48-
- name: hub login
50+
51+
# these next steps are used for merge to master (push the images) or tags (push the released images)
52+
# they really should be separate workflows or jobs, but github actions is awful about sharing between them, so it must be one job
53+
- name: docker login
4954
if: (github.event_name == 'push' && endsWith(github.ref,'/master')) || (github.event_name == 'create' && startsWith(github.ref,'refs/tags/'))
5055
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
5156
- name: deploy # when merged into master, tag master and push - ideally, this would be a separate job, but you cannot share docker build cache between jobs

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# workflow to release assets as part of the release
2+
13
on:
24
push:
35
tags:

0 commit comments

Comments
 (0)