From 3d627e63f781ac49ba7b7374d7c516186a916bb8 Mon Sep 17 00:00:00 2001 From: bbucher-sigsci Date: Thu, 21 Apr 2022 16:58:50 -0500 Subject: [PATCH] initiate release for 1.1.3 --- .github/workflows/manual-release.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/manual-release.yml diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml new file mode 100644 index 0000000..79f5c7d --- /dev/null +++ b/.github/workflows/manual-release.yml @@ -0,0 +1,36 @@ +name: Manual - Produce Docker Image, GH Release + +on: + push: + branch: + - controller-1.1.3 + +jobs: + # Manual workflow to backfill any failed/missed builds + # Update the variale TAG below as well as line #5 in values-sigsci.yaml file + # This action will build and push the tagged in imaged to docker hub, build and push Github Tag + build_push_release: + runs-on: ubuntu-latest + env: + TAG: "1.1.3" + steps: + - uses: actions/checkout@v2 + - name: Build and push Docker image + env: + REPO: signalsciences/sigsci-nginx-ingress-controller + run: | + docker build . --file Dockerfile --build-arg NGINX_INGRESS_VERSION=v${TAG} --tag ${REPO}:${TAG} + echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin + docker push ${REPO}:${TAG} + + - name: Create Github Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.TAG }} + release_name: Match release ${{ env.TAG }} + body: | + Match release kubernetes/ingress-nginx v${{ env.TAG }} + draft: false + prerelease: false