Skip to content

Commit d4abda1

Browse files
authored
fix: build and push to docker registry with tag as current release (#123)
* fix: build and push to docker registry with tag as current release Signed-off-by: Skye Gill <[email protected]> * checkout correct git ref in build-oci step Signed-off-by: Skye Gill <[email protected]> Signed-off-by: Skye Gill <[email protected]>
1 parent da1635a commit d4abda1

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

.github/workflows/release-please.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,6 @@ jobs:
2525
release_created: ${{ steps.release.outputs.release_created }}
2626
release_tag_name: ${{ steps.release.outputs.tag_name }}
2727

28-
release-assets:
29-
needs: release-please
30-
runs-on: ubuntu-latest
31-
if: ${{ needs.release-please.outputs.release_created }}
32-
steps:
33-
- name: Checkout
34-
uses: actions/checkout@v2
35-
with:
36-
ref: ${{ needs.release-please.outputs.release_tag_name }}
37-
38-
- name: Setup go
39-
uses: actions/setup-go@v3
40-
with:
41-
go-version: '1.17.11'
42-
- run: |
43-
make update-flagd
44-
go mod tidy
45-
make controller-gen
46-
IMG=ghcr.io/open-feature/open-feature-operator:${{ needs.release-please.outputs.release_tag_name }} make release-manifests
47-
48-
- name: Release
49-
uses: softprops/action-gh-release@v1
50-
with:
51-
tag_name: ${{ needs.release-please.outputs.release_tag_name }}
52-
files: |
53-
config/webhook/certificate.yaml
54-
config/rendered/release.yaml
55-
config/samples/end-to-end.yaml
56-
5728
build-oci:
5829
needs: release-please
5930
runs-on: ubuntu-latest
@@ -62,7 +33,7 @@ jobs:
6233
- name: Checkout
6334
uses: actions/checkout@v3
6435
with:
65-
submodules: recursive
36+
ref: ${{ needs.release-please.outputs.release_tag_name }}
6637

6738
- name: Log in to the Container registry
6839
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
@@ -94,5 +65,34 @@ jobs:
9465
file: ./Dockerfile
9566
platforms: linux/amd64,linux/arm64
9667
push: true
97-
tags: ${{ steps.meta.outputs.tags }}
68+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.release-please.outputs.release_tag_name }}
9869
labels: ${{ steps.meta.outputs.labels }}
70+
71+
release-assets:
72+
needs: release-please
73+
runs-on: ubuntu-latest
74+
if: ${{ needs.release-please.outputs.release_created }}
75+
steps:
76+
- name: Checkout
77+
uses: actions/checkout@v2
78+
with:
79+
ref: ${{ needs.release-please.outputs.release_tag_name }}
80+
81+
- name: Setup go
82+
uses: actions/setup-go@v3
83+
with:
84+
go-version: '1.17.11'
85+
- run: |
86+
make update-flagd
87+
go mod tidy
88+
make controller-gen
89+
IMG=ghcr.io/open-feature/open-feature-operator:${{ needs.release-please.outputs.release_tag_name }} make release-manifests
90+
91+
- name: Release
92+
uses: softprops/action-gh-release@v1
93+
with:
94+
tag_name: ${{ needs.release-please.outputs.release_tag_name }}
95+
files: |
96+
config/webhook/certificate.yaml
97+
config/rendered/release.yaml
98+
config/samples/end-to-end.yaml

0 commit comments

Comments
 (0)