-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 983 Bytes
/
docker-image.yml
File metadata and controls
39 lines (35 loc) · 983 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
name: Docker Image CI
on:
push:
branches:
- main
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
IMAGE_NAME: sebbia/postgres-proxy
jobs:
update_readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update Docker Hub description
uses: meeDamian/sync-readme@v1.0.6
with:
user: ${{secrets.DOCKER_USER}}
pass: ${{secrets.DOCKER_PASSWORD}}
slug: sebbia/postgres-proxy
readme: ./README.md
description: true
build-latest:
runs-on: ubuntu-latest
env:
TAG: "10.5-alpine"
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: |
docker build . --file ${TAG}/Dockerfile --tag ${IMAGE_NAME}:${TAG}
- name: Push image to Docker Hub
run: |
docker login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
docker push ${IMAGE_NAME}:${TAG}