Removed pg14, Added pg17, bump alpine, move to matrix
All checks were successful
Build Docker Image / build-and-deploy-image (pg15) (push) Successful in 1m37s
Build Docker Image / build-and-deploy-image (pg16) (push) Successful in 1m35s
Build Docker Image / build-and-deploy-image (pg17) (push) Successful in 1m33s

This commit is contained in:
Eugene Morozov
2024-12-08 13:28:56 +02:00
parent f073e33e59
commit ba2a897d18
9 changed files with 142 additions and 208 deletions

View File

@@ -1,12 +1,10 @@
name: Build Docker Image
on:
push:
branches:
- main
schedule:
- cron: '@monthly'
jobs:
build-and-deploy-image:
runs-on: ubuntu-latest
@@ -15,55 +13,35 @@ jobs:
env:
DOCKER_ORG: technocloud-public
RUNNER_TOOL_CACHE: /toolcache
strategy:
matrix:
postgres-version: ['pg15', 'pg16', 'pg17']
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://gitea.technocloud.ee
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: gitea.technocloud.ee
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
- name: Build and push PG14
- name: Build and Push image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.pg14
file: Dockerfile.${{ matrix.postgres-version }}
platforms: linux/amd64,linux/arm64
push: true
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:pg14
- name: Build and push PG15
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.pg15
platforms: linux/amd64,linux/arm64
push: true
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:pg15
- name: Build and push PG16
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.pg16
platforms: linux/amd64,linux/arm64
push: true
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:pg16
tags: gitea.technocloud.ee/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ matrix.postgres-version }}