Skip to content

Merge pull request #55 from ledgersmb/renovate/all-minor-patch #99

Merge pull request #55 from ledgersmb/renovate/all-minor-patch

Merge pull request #55 from ledgersmb/renovate/all-minor-patch #99

Workflow file for this run

name: Docker Image CI
on:
repository_dispatch:
types: [ master-updated ]
workflow_dispatch:
push:
branches:
- 'master'
env:
REGISTRY: ghcr.io
jobs:
ledgersmb:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: ledgersmb/
push: true
tags: ${{ env.REGISTRY }}/ledgersmb/dev-ledgersmb:latest
proxy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: nginx/
push: true
tags: ${{ env.REGISTRY }}/ledgersmb/dev-nginx:latest
postgres:
runs-on: ubuntu-latest
strategy:
matrix:
pg_version: [ "latest", "14", "13", "12" ]
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
build-args: |
PGBASE=${{ matrix.pg_version }}
context: postgres/
push: true
tags: ${{ env.REGISTRY }}/ledgersmb/dev-postgres:${{ matrix.pg_version }}