mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
142ede350e
* feat: create immich-proxy container to remove default nginx config setup * infra: make production docker-compose point at release builds for stability * Fixed nginx config file was overriden by default.conf in nginx container; Fixed docker-compose.dev; Added additional tag 'release' for tagging after release build in Github Action Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
121 lines
3.6 KiB
YAML
121 lines
3.6 KiB
YAML
name: Build and Push Docker Image - Latest
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
# This image include both the server and microservices - the two containers can be slitted into separated
|
|
# service with its coressponding entry file.
|
|
build_and_push_server_monorepo_latest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2.0.0
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v2.0.0
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push Immich Mono Repo
|
|
uses: docker/build-push-action@v3.0.0
|
|
with:
|
|
context: ./server
|
|
file: ./server/Dockerfile
|
|
platforms: linux/arm/v7,linux/amd64,linux/arm64
|
|
push: true
|
|
tags: |
|
|
altran1502/immich-server:latest
|
|
|
|
build_and_push_machine_learning_latest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2.0.0
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v2.0.0
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and Push Machine Learning
|
|
uses: docker/build-push-action@v3.0.0
|
|
with:
|
|
context: ./machine-learning
|
|
file: ./machine-learning/Dockerfile
|
|
platforms: linux/arm/v7,linux/amd64
|
|
push: true
|
|
tags: |
|
|
altran1502/immich-machine-learning:latest
|
|
|
|
build_and_push_web_latest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2.0.0
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v2.0.0
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and Push Web
|
|
uses: docker/build-push-action@v3.0.0
|
|
with:
|
|
context: ./web
|
|
file: ./web/Dockerfile
|
|
platforms: linux/arm/v7,linux/amd64,linux/arm64
|
|
target: prod
|
|
push: true
|
|
tags: |
|
|
altran1502/immich-web:latest
|
|
|
|
build_and_push_nginx_latest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2.0.0
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v2.0.0
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and Push Proxy
|
|
uses: docker/build-push-action@v3.0.0
|
|
with:
|
|
context: ./nginx
|
|
file: ./nginx/Dockerfile
|
|
platforms: linux/arm/v7,linux/amd64,linux/arm64
|
|
push: true
|
|
tags: |
|
|
altran1502/immich-proxy:latest
|