Skip to content

Commit

Permalink
Merge pull request #8 from silinternational/develop
Browse files Browse the repository at this point in the history
Switch to GitHub Actions, upgrade postgres to 14
  • Loading branch information
devon-sil authored Mar 7, 2024
2 parents 5336b2a + b7cb71e commit 82f248e
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
*.aes
codeship-services.yml
codeship-steps.yml
dockercfg
32 changes: 32 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Publish

on:
push:

jobs:
build-and-publish:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.DOCKER_ORG }}/${{ github.event.repository.name }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/reposito
RUN apk update \
&& apk add --no-cache \
bash \
postgresql12-client \
postgresql14-client \
py3-magic \
py3-dateutil \
s3cmd
Expand Down
5 changes: 0 additions & 5 deletions codeship-services.yml

This file was deleted.

18 changes: 0 additions & 18 deletions codeship-steps.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
# POSTGRES_USER - superuser (default is 'postgres')
# POSTGRES_DB - name of default database (default is value of POSTGRES_USER)
db:
image: postgres:11.15-alpine3.15
image: postgres:14.11-alpine3.19
volumes_from:
- data
ports:
Expand Down
2 changes: 0 additions & 2 deletions dockercfg.encrypted

This file was deleted.

0 comments on commit 82f248e

Please sign in to comment.