Skip to content

Docker Build

Docker Build #5

Workflow file for this run

name: Docker Build
on:
workflow_dispatch:
env:
REGISTRY: ghcr.io
NAME: ppf-contact-solver
jobs:
compiled:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image
uses: docker/build-push-action@v5
with:
push: true
build-args: BUILD_MODE=compile
tags: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.NAME }}:latest
base:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image
uses: docker/build-push-action@v5
with:
push: true
build-args: BUILD_MODE=base
tags: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.NAME }}-base:latest