forked from Showmax/patroni-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.12 KB
/
ci-cd.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
name: CI CD
on:
pull_request:
jobs:
docker:
name: Build Docker image
runs-on: ubuntu-22.04
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker metadata action
id: meta
uses: docker/metadata-action@v5
with:
images:
patroni-exporter-local
tags: |
type=raw,latest
- name: Build Dockerimage
id: docker_build
uses: docker/build-push-action@v5
with:
labels: ${{ steps.meta.outputs.labels }}
outputs: type=docker,dest=/tmp/patroni-exporter-local.tar
platforms: linux/amd64
push: false
tags: ${{ steps.meta.outputs.tags }}
dependabot-automerge:
name: Auto Merge (Dependabot)
needs:
- docker
uses: Staffbase/gha-workflows/.github/workflows/[email protected]
with:
force: true
secrets:
app_id: ${{ vars.STAFFBASE_ACTIONS_APP_ID }}
private_key: ${{ secrets.STAFFBASE_ACTIONS_PRIVATE_KEY }}