Skip to content

Commit

Permalink
ci: build zbchaos docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
lenaschoenburg committed Oct 12, 2022
1 parent 8373fcb commit 5b8e0b5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publishZbchaosImage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release zbchaos Docker Image
on:
pull_request: {}
release:
types: [published]

jobs:
publish-image:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.release.name || github.sha }}
steps:
- uses: actions/checkout@v3
- name: Setup BuildKit
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.DOCKER_GCR }}
- name: Publish Docker Image
uses: docker/build-push-action@v3
with:
context: go-chaos
push: true
tags: gcr.io/zeebe-io/zbchaos:${{ env.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 5b8e0b5

Please sign in to comment.