-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.14 KB
/
image-push-istio-proxyv2.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
name: Push Istio Proxy v2 with custom Golang filter
on:
push:
branches:
- "main"
paths:
- "privacy-profile-composer/**"
- "docker/istio-proxyv2.Dockerfile"
schedule:
# Runs every Thursday midnight
- cron: "0 0 * * 4"
jobs:
push_istio_proxyv2_to_registry:
name: Push custom Istio Proxy V2 image to GHCR
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/dettanym/prose-istio-proxyv2
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: docker/istio-proxyv2.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}