Change running methodology for single docker compose #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Publish Docker Images | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
# | |
# # # # # # # # # # # # # # # # # # # # # | |
# # # # # # # # # # # # # # # # # # # # # | |
pdf-maker-renderer: | |
name: 'Build Docker Image (renderer)' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@master | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Docker Image - renderer | |
uses: docker/build-push-action@master | |
with: | |
push: true | |
context: ./renderer | |
file: ./renderer/Dockerfile | |
tags: ghcr.io/carrismetropolitana/pdf-maker-renderer:${{ github.ref_name }} | |
# # # # # # # # # # # # # # # # # # # # # | |
# # # # # # # # # # # # # # # # # # # # # | |
pdf-maker-printer: | |
name: 'Build Docker Image (printer)' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@master | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Docker Image - printer | |
uses: docker/build-push-action@master | |
with: | |
push: true | |
context: ./printer | |
file: ./printer/Dockerfile | |
tags: ghcr.io/carrismetropolitana/pdf-maker-printer:${{ github.ref_name }} | |
pdf-maker-queue: | |
name: 'Build Docker Image (queue-manager)' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@master | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build Docker Image - queue-manager | |
uses: docker/build-push-action@master | |
with: | |
push: true | |
context: ./queue-manager | |
file: ./queue-manager/Dockerfile | |
tags: ghcr.io/carrismetropolitana/pdf-maker-queue:${{ github.ref_name }} |