Skip to content

Commit

Permalink
fix: build and push to docker registry with tag as current release (#123
Browse files Browse the repository at this point in the history
)

* fix: build and push to docker registry with tag as current release

Signed-off-by: Skye Gill <gill.skye95@gmail.com>

* checkout correct git ref in build-oci step

Signed-off-by: Skye Gill <gill.skye95@gmail.com>

Signed-off-by: Skye Gill <gill.skye95@gmail.com>
  • Loading branch information
skyerus authored Oct 18, 2022
1 parent da1635a commit d4abda1
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,6 @@ jobs:
release_created: ${{ steps.release.outputs.release_created }}
release_tag_name: ${{ steps.release.outputs.tag_name }}

release-assets:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ needs.release-please.outputs.release_tag_name }}

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '1.17.11'
- run: |
make update-flagd
go mod tidy
make controller-gen
IMG=ghcr.io/open-feature/open-feature-operator:${{ needs.release-please.outputs.release_tag_name }} make release-manifests
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.release-please.outputs.release_tag_name }}
files: |
config/webhook/certificate.yaml
config/rendered/release.yaml
config/samples/end-to-end.yaml
build-oci:
needs: release-please
runs-on: ubuntu-latest
Expand All @@ -62,7 +33,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
ref: ${{ needs.release-please.outputs.release_tag_name }}

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand Down Expand Up @@ -94,5 +65,34 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.release-please.outputs.release_tag_name }}
labels: ${{ steps.meta.outputs.labels }}

release-assets:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ needs.release-please.outputs.release_tag_name }}

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '1.17.11'
- run: |
make update-flagd
go mod tidy
make controller-gen
IMG=ghcr.io/open-feature/open-feature-operator:${{ needs.release-please.outputs.release_tag_name }} make release-manifests
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.release-please.outputs.release_tag_name }}
files: |
config/webhook/certificate.yaml
config/rendered/release.yaml
config/samples/end-to-end.yaml

0 comments on commit d4abda1

Please sign in to comment.