Skip to content

Commit 19a2bd9

Browse files
authored
Merge pull request #3 from silinternational/develop
Switch to GitHub Actions & Upgrade to Postgres 14
2 parents c3e13b2 + 34e5ad0 commit 19a2bd9

File tree

7 files changed

+39
-33
lines changed

7 files changed

+39
-33
lines changed

.dockerignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
*.aes
2-
codeship-services.yml
3-
codeship-steps.yml
42
dockercfg
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and Publish
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build-and-publish:
8+
name: Build and Publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Log in to Docker Hub
15+
uses: docker/login-action@v3
16+
with:
17+
username: ${{ secrets.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
19+
20+
- name: Extract metadata (tags, labels) for Docker
21+
id: meta
22+
uses: docker/metadata-action@v5
23+
with:
24+
images: ${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }}
25+
tags: |
26+
type=ref,event=branch
27+
type=ref,event=tag
28+
# set latest tag for master branch
29+
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
30+
31+
- name: Build and push Docker image
32+
uses: docker/build-push-action@v5
33+
with:
34+
context: .
35+
push: true
36+
tags: ${{ steps.meta.outputs.tags }}
37+
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:3.15
33
RUN apk update \
44
&& apk add --no-cache \
55
bash \
6-
postgresql12-client
6+
postgresql14-client
77

88
COPY application/ /data/
99
WORKDIR /data

codeship-services.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

codeship-steps.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
# POSTGRES_USER - superuser (default is 'postgres')
1212
# POSTGRES_DB - name of default database (default is value of POSTGRES_USER)
1313
db:
14-
image: postgres:11.15-alpine3.15
14+
image: postgres:14.11-alpine3.19
1515
volumes_from:
1616
- data
1717
ports:

dockercfg.encrypted

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)