-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.29 KB
/
build-demo-stuff.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
name: CD
on:
push:
branches:
- 'dashboard-demo'
env:
REGISTRY: ghcr.io
jobs:
build-consumer-connector:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
name: checkout
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker "connector" meta
id: consumer-connector-meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/possible-x/connector
tags: |
type=raw,value=dashboard-demo-consumer,enable=true
- name: Build and push "connector"
id: build_and_push_connector
uses: docker/build-push-action@v4
with:
context: ./dashboard/deployment/connector
file: ./dashboard/deployment/connector/Dockerfile.consumer
push: true
tags: ${{ steps.consumer-connector-meta.outputs.tags }}
labels: ${{ steps.consumer-connector-meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max