Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Add github actions to build and push operator image (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas authored Feb 8, 2021
1 parent e9cf8c7 commit b939155
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on: [push, pull_request]
name: Test
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Build image
run: make operator-image
26 changes: 26 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Prepare
id: prep
run: |
DOCKER_IMAGE=ghcr.io/spotify/flink-operator:${GITHUB_SHA::8}
echo ::set-output name=image::${DOCKER_IMAGE}
- name: Login to Github container registry
uses: docker/login-action@v1.1.1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Push image
run: make operator-image push-operator-image
env:
IMG: ${{ steps.prep.outputs.image }}

0 comments on commit b939155

Please sign in to comment.