Skip to content

Commit

Permalink
Update staging version automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
timhabermaas committed Oct 10, 2022
1 parent 4629736 commit dddfa44
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,22 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
cache-from: type=registry,ref=ghcr.io/timhabermaas/cubemania_backup:buildcache
cache-to: type=registry,ref=ghcr.io/timhabermaas/cubemania_backup:buildcache,mode=max


staging-update:
needs: build-and-push-docker-image
#if: startsWith(github.ref, 'refs/tags/v')

runs-on: ubuntu-latest

# TODO: Only run if tagged
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
repository: timhabermaas/cubemania-kubernetes
token: ${{ K8S_ACCESS_TOKEN }}
- name: Set new staging version
run: |
git config user.name "Deploy Bot"
git config user.email "[email protected]"

0 comments on commit dddfa44

Please sign in to comment.