-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.38 KB
/
docker-postgres.yml
File metadata and controls
48 lines (41 loc) · 1.38 KB
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
47
48
# Docker — deck-postgres 이미지 빌드/푸시
# Dockerfile.postgres 변경 시 또는 workflow_dispatch로 수동 트리거
name: CI / Docker (postgres)
on:
push:
branches: [develop, release]
paths:
- 'Dockerfile.postgres'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-postgres:
runs-on: ["os:ubuntu", "arch:arm64", "purpose:build"]
steps:
- uses: actions/checkout@v6
- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: ireg.querypie.io
username: ${{ vars.IREG_QUERYPIE_IO_USERNAME }}
password: ${{ secrets.IREG_QUERYPIE_IO_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push deck-postgres
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.postgres
platforms: linux/amd64,linux/arm64
push: true
tags: |
ireg.querypie.io/ci/deck-postgres:latest
ireg.querypie.io/ci/deck-postgres:${{ github.sha }}
cache-from: type=registry,ref=ireg.querypie.io/ci/deck-postgres:buildcache
cache-to: type=registry,ref=ireg.querypie.io/ci/deck-postgres:buildcache,mode=max
env:
BUILDKIT_PROGRESS: plain