Skip to content

Commit

Permalink
Fix docker image tagging (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas authored Apr 16, 2021
1 parent 5305967 commit ecac3ac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
env:
DOCKER_REPO: ghcr.io/spotify/flink-operator
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}
echo ::set-output name=image::${DOCKER_REPO}:${GITHUB_REF/refs\/tags\//}
- name: Login to Github container registry
uses: docker/login-action@v1.1.1
with:
Expand All @@ -24,3 +25,7 @@ jobs:
run: make operator-image push-operator-image
env:
IMG: ${{ steps.prep.outputs.image }}
- name: Tag latest
run: docker tag ${{ steps.prep.outputs.image }} ${DOCKER_REPO}:latest
- name: Push latest
run: docker push ${DOCKER_REPO}:latest

0 comments on commit ecac3ac

Please sign in to comment.