-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.24 KB
/
release.yaml
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
# Prefect Operator release workflow.
name: Release
on:
release:
types: [published]
permissions: {}
jobs:
build-and-upload-manifests:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- name: Build and upload manifests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd config/manager && kustomize edit set image controller=${{ github.ref_name }}
kustomize build config/crds > prefect-crds.yaml
kustomize build config/default > prefect.yaml
gh release upload ${{github.event.release.tag_name}} prefect-crds.yaml prefect.yaml
build-and-push-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: prefect/prefect-operator:${{ github.ref_name }}