-
Notifications
You must be signed in to change notification settings - Fork 71
46 lines (45 loc) · 1.36 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Publish
on:
push:
tags: ["v*"]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
env:
DOCKER_REPO: ghcr.io/spotify/flink-operator
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Prepare
id: prep
run: |
echo ::set-output name=image::${DOCKER_REPO}:${GITHUB_REF/refs\/tags\//}
- name: Login to Github container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Image
uses: actions/setup-go@v5
with:
go-version: "^1.23.0"
- run: make release-manifests docker-push
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
- name: Push release manifest
uses: softprops/action-gh-release@v2
with:
files: config/deploy/flink-operator.yaml
- name: Push release manifest sharded
uses: softprops/action-gh-release@v2
with:
files: config/deploy/flink-operator-sharded.yaml