mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
6023c3c624
* Implemented lazy loading thumbnail * Display assets as date-time grouping * Update Readme * Modify GitHub action to run from the latest update
97 lines
2.8 KiB
YAML
97 lines
2.8 KiB
YAML
name: Build and Push Docker Image - Latest
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build_and_push_server_latest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
# ref: "main" # branch
|
|
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
|
|
uses: docker/build-push-action@v3.0.0
|
|
with:
|
|
context: ./server
|
|
file: ./server/Dockerfile
|
|
platforms: linux/arm/v7,linux/amd64,linux/arm64
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
tags: |
|
|
altran1502/immich-server:latest
|
|
|
|
build_and_push_microservice_latest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
# ref: "main" # branch
|
|
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 Microservices
|
|
uses: docker/build-push-action@v3.0.0
|
|
with:
|
|
context: ./microservices
|
|
file: ./microservices/Dockerfile
|
|
platforms: linux/arm/v7,linux/amd64
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
tags: |
|
|
altran1502/immich-microservices:latest
|
|
|
|
build_and_push_web_latest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
# ref: "main" # branch
|
|
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: ${{ github.event_name != 'pull_request' }}
|
|
tags: |
|
|
altran1502/immich-web:latest
|