Skip to content

Commit

Permalink
pipe: fix creds for release
Browse files Browse the repository at this point in the history
  • Loading branch information
isindir committed Jan 12, 2024
1 parent 8c6710a commit 765d87c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- '**'
- '!master'
- '!main'

jobs:
build:
Expand Down Expand Up @@ -160,6 +159,7 @@ jobs:
run: |
echo "IMAGE_FULL_NAME=$(make image_full_name)" >> $GITHUB_ENV
echo "IMAGE_LATEST_NAME=$(make image_latest_name)" >> $GITHUB_ENV
echo "IMAGE_CACHE_NAME=$(make image_cache_name)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -180,5 +180,5 @@ jobs:
push: false
tags: ${{ steps.set_variable.outputs.IMAGE_LATEST_NAME }},${{ steps.set_variable.outputs.IMAGE_FULL_NAME }}
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=isindir/sops-secrets-operator:cache
cache-to: type=registry,ref=isindir/sops-secrets-operator:cache,mode=max
cache-from: type=registry,ref=${{ steps.set_variable.outputs.IMAGE_CACHE_NAME }}
cache-to: type=registry,ref=${{ steps.set_variable.outputs.IMAGE_FULL_NAME }}:cache,mode=max
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Tag and release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
set +e
git tag "${SOPS_SEC_OPERATOR_VERSION}"
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ image_full_name: ## Prints out image full name set in Makefile
image_latest_name: ## Prints out image latest name set in Makefile
@echo ${IMG_LATEST}

.PHONY: image_cache_name
image_cache_name: ## Prints out image cache name set in Makefile
@echo ${IMG_CACHE}

.PHONY: tidy
tidy: ## Fetches all go dependencies.
$(GO) mod tidy
Expand Down

0 comments on commit 765d87c

Please sign in to comment.