Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
isindir committed Feb 7, 2024
1 parent a90a73c commit 3deb794
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 39 deletions.
86 changes: 48 additions & 38 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,49 +34,59 @@ jobs:
echo "IMAGE_CACHE_NAME=$(make image_cache_name)" >> $GITHUB_ENV
echo "SKIP_RELEASE=$SKIP_RELEASE" >> $GITHUB_ENV
- name: Install asdf tools
if: env.SKIP_RELEASE != ''
uses: asdf-vm/actions/install@v2
- name: debug - release
if: env.SKIP_RELEASE == ''
run: |
pwd
- name: install hub
- name: debug - skip
if: env.SKIP_RELEASE != ''
run: |
curl -sSLO https://github.com/github/hub/releases/download/v${HUB_VERSION}/hub-linux-amd64-${HUB_VERSION}.tgz
tar -xzf hub-linux-amd64-${HUB_VERSION}.tgz
chmod +x hub-linux-amd64-${HUB_VERSION}/bin/hub
sudo mv hub-linux-amd64-${HUB_VERSION}/bin/hub /usr/local/bin/
pwd
- name: Set up QEMU
if: env.SKIP_RELEASE != ''
uses: docker/setup-qemu-action@v3
#- name: Install asdf tools
# if: env.SKIP_RELEASE != ''
# uses: asdf-vm/actions/install@v2

- name: Set up Docker Buildx
if: env.SKIP_RELEASE != ''
uses: docker/setup-buildx-action@v3
#- name: install hub
# if: env.SKIP_RELEASE != ''
# run: |
# curl -sSLO https://github.com/github/hub/releases/download/v${HUB_VERSION}/hub-linux-amd64-${HUB_VERSION}.tgz
# tar -xzf hub-linux-amd64-${HUB_VERSION}.tgz
# chmod +x hub-linux-amd64-${HUB_VERSION}/bin/hub
# sudo mv hub-linux-amd64-${HUB_VERSION}/bin/hub /usr/local/bin/

- name: Log in to Docker Hub
if: env.SKIP_RELEASE != ''
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS }}
#- name: Set up QEMU
# if: env.SKIP_RELEASE != ''
# uses: docker/setup-qemu-action@v3

- name: Tag and release
if: env.SKIP_RELEASE != ''
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git tag "${SOPS_SEC_OPERATOR_VERSION}"
git-chglog "${SOPS_SEC_OPERATOR_VERSION}" > chglog.tmp
hub release create -F chglog.tmp "${SOPS_SEC_OPERATOR_VERSION}"
#- name: Set up Docker Buildx
# if: env.SKIP_RELEASE != ''
# uses: docker/setup-buildx-action@v3

- name: Docker build
if: env.SKIP_RELEASE != ''
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.IMAGE_LATEST_NAME }},${{ env.IMAGE_FULL_NAME }}
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=${{ env.IMAGE_CACHE_NAME }}
cache-to: type=registry,ref=${{ env.IMAGE_CACHE_NAME }},mode=max
#- name: Log in to Docker Hub
# if: env.SKIP_RELEASE != ''
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASS }}

#- name: Tag and release
# if: env.SKIP_RELEASE != ''
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# run: |
# git tag "${SOPS_SEC_OPERATOR_VERSION}"
# git-chglog "${SOPS_SEC_OPERATOR_VERSION}" > chglog.tmp
# hub release create -F chglog.tmp "${SOPS_SEC_OPERATOR_VERSION}"

#- name: Docker build
# if: env.SKIP_RELEASE != ''
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: ${{ env.IMAGE_LATEST_NAME }},${{ env.IMAGE_FULL_NAME }}
# platforms: linux/amd64,linux/arm64
# cache-from: type=registry,ref=${{ env.IMAGE_CACHE_NAME }}
# cache-to: type=registry,ref=${{ env.IMAGE_CACHE_NAME }},mode=max
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UPDATE_HERE
GO := GOPROXY=https://proxy.golang.org go
SOPS_SEC_OPERATOR_VERSION := 0.12.2
SOPS_SEC_OPERATOR_VERSION := 0.12.1

# https://github.com/kubernetes-sigs/controller-tools/releases
CONTROLLER_GEN_VERSION := "v0.14.0"
Expand Down

0 comments on commit 3deb794

Please sign in to comment.