* Add Multi-arch builds to include linux/arm64 * Fix template parameter for git sha * Fix Typo with local-mail server * Copy the project files * Change context for image-proxy * Improve runner
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Build Docker Images
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- 'apple/**'
|
|
- 'android/**'
|
|
|
|
jobs:
|
|
build-docker-images:
|
|
name: Build docker images
|
|
runs-on: 'ubuntu-latest-m'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: 'Login to GitHub container registry'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{github.actor}}
|
|
password: ${{secrets.GITHUB_TOKEN}}
|
|
- name: Build the backend docker image
|
|
run: |
|
|
docker build . --file packages/api/Dockerfile --tag "ghcr.io/omnivore-app/backend:${GITHUB_SHA}" --tag ghcr.io/omnivore-app/backend:latest
|
|
docker push ghcr.io/omnivore-app/backend:${GITHUB_SHA}
|
|
- name: Build the content-fetch docker image
|
|
run: |
|
|
docker build --file packages/content-fetch/Dockerfile . --tag "ghcr.io/omnivore-app/content-fetch:${GITHUB_SHA}" --tag ghcr.io/omnivore-app/content-fetch:latest
|
|
docker push ghcr.io/omnivore-app/content-fetch:${GITHUB_SHA}
|
|
|