-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (39 loc) · 947 Bytes
/
Copy pathpostgres.yml
File metadata and controls
42 lines (39 loc) · 947 Bytes
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
name: Build Postgres
env:
TZ: Asia/Shanghai
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 6'
push:
paths:
- 'postgres/**'
- '.github/workflows/postgres.yml'
branches:
- master
jobs:
build:
name: build postgres image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install Task
uses: go-task/setup-task@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login GHCR
uses: docker/login-action@v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCRIO }}
- name: Login DockerHub
uses: docker/login-action@v4.6.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build postgres
run: |
task postgres