-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (36 loc) · 988 Bytes
/
pg-build.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
name: Deploy pg-v8
on:
push:
branches: [ deeplinks-70-menzorg ]
paths:
- postgresql/**
workflow_dispatch:
defaults:
run:
working-directory: ./
jobs:
build:
name: dockerize
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: deepf/pg12-plv8
- name: build docker image and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./postgresql
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}