-
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (45 loc) · 1.08 KB
/
postgres.yml
File metadata and controls
48 lines (45 loc) · 1.08 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
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@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: install task
run: |
echo "install task"
go install github.com/go-task/task/v3/cmd/task@latest
- 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
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCRIO }}
- name: Login DockerHub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build postgres
run: |
task postgres