Skip to content

Commit

Permalink
Update image name, give package permission
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-haley authored Jan 26, 2024
1 parent 6588c1e commit 4105da3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- "v*"

permissions:
contents: read
packages: write

env:
GOLANG_VERSION: "1.20.x"

Expand Down Expand Up @@ -34,4 +38,6 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Release
run: make docker-buildx IMG=ghcr.io/benthosdev/benthos-captain:${{github.ref_name}}
run: |
make docker-buildx IMG=ghcr.io/benthosdev/benthos-captain:${{github.ref_name}}
make docker-buildx IMG=ghcr.io/benthosdev/benthos-captain:latest
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Image URL to use all building/pushing image targets
IMG ?= controller:latest
IMG ?= ghcr.io/benthosdev/benthos-captain:latest
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.27.1

Expand Down
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# build benthos operator
def deploy_benthos_operator():
docker_build(
"controller:latest",
"ghcr.io/benthosdev/benthos-captain:latest",
".",
ignore=[
".git",
Expand Down
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
args:
- --leader-elect
- -zap-devel
image: controller:latest
image: ghcr.io/benthosdev/benthos-captain:latest
name: manager
securityContext:
allowPrivilegeEscalation: false
Expand Down

0 comments on commit 4105da3

Please sign in to comment.