-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a383c6f
commit 3d627e6
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |