Skip to content

Fix typo

Fix typo #19

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
build:
name: Release
environment: ci-cd
runs-on: ubuntu-20.04
env:
# https://github.com/github/hub/releases
HUB_VERSION: 2.14.2
steps:
- uses: actions/checkout@v4
name: Check out code
with:
fetch-tags: 'true'
fetch-depth: 0
- name: Set up Docker variables
id: set_variables
run: |
VERSION=$(make image_tag)
echo "SOPS_SEC_OPERATOR_VERSION=$VERSION" >> $GITHUB_ENV
SKIP_RELEASE=$(git tag -l "${VERSION}")
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
echo "SKIP_RELEASE=$SKIP_RELEASE" >> $GITHUB_ENV
- name: debug - release
if: env.SKIP_RELEASE == ''
run: |
pwd
- name: debug - skip
if: env.SKIP_RELEASE != ''
run: |
pwd
#- name: Install asdf tools
# if: env.SKIP_RELEASE != ''
# uses: asdf-vm/actions/install@v2
#- 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: Set up QEMU
# if: env.SKIP_RELEASE != ''
# uses: docker/setup-qemu-action@v3
#- name: Set up Docker Buildx
# if: env.SKIP_RELEASE != ''
# uses: docker/setup-buildx-action@v3
#- 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