Merge pull request #67 from external-secrets/bump010 #68
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
name: release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ./bin | |
key: ${{ runner.os }}-bin | |
- name: Build image | |
run: make docker-build | |
- name: Export release name | |
run: | | |
echo "NEW_RELEASE=$(make get-new-release)" >> $GITHUB_ENV | |
- name: Login to Docker | |
uses: docker/login-action@v1 | |
if: ${{ env.NEW_RELEASE != '' }} | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.GHCR_USERNAME }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
- name: Push new operator image | |
if: ${{ env.NEW_RELEASE != '' }} | |
run: make docker-push | |
- name: Publish new bundle image | |
if: ${{ env.NEW_RELEASE != '' }} | |
run: make bundle-publish | |
- name: Create a new draft-release in github | |
if: ${{ env.NEW_RELEASE != '' }} | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "${{ env.NEW_RELEASE }}" | |
title: "${{ env.NEW_RELEASE }}" | |
draft: true |