Skip to content

Commit

Permalink
push all images with buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Mar 24, 2023
1 parent cb92587 commit 1dfae23
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ jobs:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build images
run: |
make docker-build
make bundle-build
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image ghcr.io
run: |
make docker-push
make bundle-push
# - name: Push image ghcr.io
# run: |
# make docker-push
# make bundle-push
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ run: helm-operator ## Run against the configured Kubernetes cluster in ~/.kube/c

.PHONY: docker-build
docker-build: ## Build docker image with the manager.
docker buildx build --platform linux/amd64,linux/arm64 -t ${IMG} .
docker buildx build --platform linux/amd64,linux/arm64 -t ${IMG} . --push

.PHONY: docker-push
docker-push: ## Push docker image with the manager.
Expand Down Expand Up @@ -146,7 +146,7 @@ bundle: kustomize ## Generate bundle manifests and metadata, then validate gener

.PHONY: bundle-build
bundle-build: ## Build the bundle image.
docker buildx build --platform linux/amd64,linux/arm64 -f bundle.Dockerfile -t $(BUNDLE_IMG) .
docker buildx build --platform linux/amd64,linux/arm64 -f bundle.Dockerfile -t $(BUNDLE_IMG) . --push

.PHONY: bundle-push
bundle-push: ## Push the bundle image.
Expand Down

0 comments on commit 1dfae23

Please sign in to comment.