2022-04-05 17:16:15 +02:00
|
|
|
name: Build and Push Docker Image - Latest
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
2022-06-11 23:12:06 +02:00
|
|
|
# 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:
|
2022-04-05 17:16:15 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
2022-05-21 23:50:56 +02:00
|
|
|
fetch-depth: 0
|
|
|
|
|
2022-04-05 17:16:15 +02:00
|
|
|
- name: Set up QEMU
|
2022-05-06 14:20:50 +02:00
|
|
|
uses: docker/setup-qemu-action@v2.0.0
|
2022-04-05 17:16:15 +02:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2022-05-06 14:21:33 +02:00
|
|
|
uses: docker/setup-buildx-action@v2.0.0
|
2022-04-05 17:16:15 +02:00
|
|
|
- name: Login to Docker Hub
|
2022-05-06 14:21:11 +02:00
|
|
|
uses: docker/login-action@v2
|
2022-04-05 17:16:15 +02:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
2022-06-11 23:12:06 +02:00
|
|
|
- name: Build and push Immich Mono Repo
|
2022-05-06 14:21:21 +02:00
|
|
|
uses: docker/build-push-action@v3.0.0
|
2022-04-05 17:16:15 +02:00
|
|
|
with:
|
|
|
|
context: ./server
|
|
|
|
file: ./server/Dockerfile
|
|
|
|
platforms: linux/arm/v7,linux/amd64,linux/arm64
|
2022-06-11 23:12:06 +02:00
|
|
|
push: true
|
2022-04-05 17:16:15 +02:00
|
|
|
tags: |
|
|
|
|
altran1502/immich-server:latest
|
|
|
|
|
2022-06-11 23:12:06 +02:00
|
|
|
build_and_push_machine_learning_latest:
|
2022-05-21 09:23:55 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
2022-05-21 23:50:56 +02:00
|
|
|
fetch-depth: 0
|
|
|
|
|
2022-05-21 09:23:55 +02:00
|
|
|
- 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 }}
|
2022-06-11 23:12:06 +02:00
|
|
|
- name: Build and Push Machine Learning
|
2022-05-21 09:23:55 +02:00
|
|
|
uses: docker/build-push-action@v3.0.0
|
|
|
|
with:
|
2022-06-11 23:12:06 +02:00
|
|
|
context: ./machine-learning
|
|
|
|
file: ./machine-learning/Dockerfile
|
2022-05-21 09:23:55 +02:00
|
|
|
platforms: linux/arm/v7,linux/amd64
|
2022-06-11 23:12:06 +02:00
|
|
|
push: true
|
2022-05-21 09:23:55 +02:00
|
|
|
tags: |
|
2022-06-11 23:12:06 +02:00
|
|
|
altran1502/immich-machine-learning:latest
|
2022-05-21 09:23:55 +02:00
|
|
|
|
|
|
|
build_and_push_web_latest:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
2022-05-21 23:50:56 +02:00
|
|
|
fetch-depth: 0
|
2022-05-21 09:23:55 +02:00
|
|
|
- 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
|
2022-06-11 23:12:06 +02:00
|
|
|
push: true
|
2022-05-21 09:23:55 +02:00
|
|
|
tags: |
|
|
|
|
altran1502/immich-web:latest
|