Skip to content

Merge pull request #54 from ledgersmb/renovate/docker-login-action-di… #100

Merge pull request #54 from ledgersmb/renovate/docker-login-action-di…

Merge pull request #54 from ledgersmb/renovate/docker-login-action-di… #100

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@1f401f745bf57e30b3a2800ad308a87d2ebdf14b
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@1f401f745bf57e30b3a2800ad308a87d2ebdf14b
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@1f401f745bf57e30b3a2800ad308a87d2ebdf14b
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 }}