Skip to content

Commit

Permalink
Add release workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Jan 28, 2021
1 parent c405e7b commit 22ca87c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: release

on:
push:
branches:
- test-release
tags:
- v*

env:
GCR_REPOSITORY: gcr.io/int128-1313/argocd-commenter

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cd config/manager && kustomize edit set image controller="${GCR_REPOSITORY}:${GITHUB_REF##*/}"
- run: kustomize build config/default | tee /tmp/argocd-commenter.yaml
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/argocd-commenter.yaml
asset_name: argocd-commenter.yaml
asset_content_type: text/plain

0 comments on commit 22ca87c

Please sign in to comment.