basic spacing / styling fixes #317
This file contains hidden or 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: dockerize | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'client/**' | |
- 'server/**' | |
- 'jobs/**' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build_client: | |
name: Build and Push client image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push client image | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./client | |
file: ./client/Dockerfile | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/ap-client:${{ github.ref_name == 'master' && 'latest' || github.ref_name }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
build_server: | |
name: Build and Push server image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push server image | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./server | |
file: ./server/Dockerfile | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/ap-server:${{ github.ref_name == 'master' && 'latest' || github.ref_name }} | |
build_jobs: | |
name: Build and Push jobs image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push jobs image | |
uses: docker/build-push-action@v3 | |
with: | |
context: ./jobs | |
file: ./jobs/Dockerfile | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/ap-jobs:${{ github.ref_name == 'master' && 'latest' || github.ref_name }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |