High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
Build and tag docker image for Dockerhub release (#111)
Alex8e80825b4f8b
diff --git a/.github/workflows/build_push_docker_latest.yml b/.github/workflows/build_push_docker_latest.ymlnew file mode 100644index 0000000000..2f8674767d--- /dev/null+++ b/.github/workflows/build_push_docker_latest.yml@@ -0,0 +1,64 @@+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+ - name: Set up QEMU+ uses: docker/[email protected]+ - name: Set up Docker Buildx+ id: buildx+ uses: docker/[email protected]+ - name: Login to Docker Hub+ uses: docker/login-action@v1+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Build and push Immich+ uses: docker/[email protected]+ 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+ - name: Set up QEMU+ uses: docker/[email protected]+ - name: Set up Docker Buildx+ id: buildx+ uses: docker/[email protected]+ - name: Login to Docker Hub+ uses: docker/login-action@v1+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Build and Push Microservices+ uses: docker/[email protected]+ with:+ context: ./microservices+ file: ./microservices/Dockerfile+ platforms: linux/arm/v7,linux/amd64+ push: ${{ github.event_name != 'pull_request' }}+ tags: |+ altran1502/immich-microservices:latest\ No newline at end of filediff --git a/.github/workflows/build_push_server_latest.yml b/.github/workflows/build_push_server_latest.ymldeleted file mode 100644index aabf7d556b..0000000000--- a/.github/workflows/build_push_server_latest.yml+++ /dev/null@@ -1,42 +0,0 @@-name: Build Server - Latest--on:- workflow_dispatch:- push:- branches: [main]- pull_request:- branches: [main]--jobs:- buildandpush:- runs-on: ubuntu-latest- steps:- - name: Checkout- uses: actions/checkout@v3- with:- ref: "main" # branch- # https://github.com/docker/setup-qemu-action#usage- - name: Set up QEMU- uses: docker/[email protected]- # https://github.com/marketplace/actions/docker-setup-buildx- - name: Set up Docker Buildx- id: buildx- uses: docker/[email protected]- # https://github.com/docker/login-action#docker-hub- - name: Login to Docker Hub- uses: docker/login-action@v1- with:- username: ${{ secrets.DOCKERHUB_USERNAME }}- password: ${{ secrets.DOCKERHUB_TOKEN }}- # https://github.com/docker/build-push-action#multi-platform-image- - name: Build and push Immich- uses: docker/[email protected]- with:- context: ./server- file: ./server/Dockerfile- #platforms: linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6- platforms: linux/arm/v7,linux/amd64,linux/arm64- pull: true- push: true- tags: |- altran1502/immich-server:latestdiff --git a/.github/workflows/build_push_server_release.yml b/.github/workflows/build_push_server_release.ymlindex b227b6427b..5216065620 100644--- a/.github/workflows/build_push_server_release.yml+++ b/.github/workflows/build_push_server_release.yml@@ -2,37 +2,94 @@ name: Build Server - Releaseon:workflow_dispatch:+ release:+ types: [published]jobs:- buildandpush:+ build_and_push_server_release:runs-on: ubuntu-lateststeps:- name: Checkoutuses: actions/checkout@v3with:- ref: "main" # branch- # https://github.com/docker/setup-qemu-action#usage+ ref: "main"+ fetch-depth: 0++ - name: Docker meta+ id: meta+ uses: docker/metadata-action@v3+ with:+ images: altran1502/immich-server++ - name: 'Get Previous tag'+ id: previoustag+ uses: "WyriHaximus/github-action-get-previous-tag@v1"+ with:+ fallback: latest+- name: Set up QEMUuses: docker/[email protected]- # https://github.com/marketplace/actions/docker-setup-buildx+- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- # https://github.com/docker/login-action#docker-hub+- name: Login to Docker Hubuses: docker/login-action@v1with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}- # https://github.com/docker/build-push-action#multi-platform-image- - name: Build and push Immich++ - name: Build and push immich-server releaseuses: docker/[email protected]with:context: ./serverfile: ./server/Dockerfile- #platforms: linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6platforms: linux/arm/v7,linux/amd64,linux/arm64- pull: true- push: true- tags: |- altran1502/immich-server:${{github.ref_name}}+ push: ${{ github.event_name != 'pull_request' }}+ tags: ${{ steps.previoustag.outputs.tag }}+ labels: ${{ steps.meta.outputs.labels }}++ build_and_push_microservice_release:+ runs-on: ubuntu-latest+ steps:+ - name: Checkout+ uses: actions/checkout@v3+ with:+ ref: "main"+ fetch-depth: 0++ - name: Docker meta+ id: meta+ uses: docker/metadata-action@v3+ with:+ images: altran1502/immich-microservices++ - name: 'Get Previous tag'+ id: previoustag+ uses: "WyriHaximus/github-action-get-previous-tag@v1"+ with:+ fallback: latest++ - name: Set up QEMU+ uses: docker/[email protected]++ - name: Set up Docker Buildx+ id: buildx+ uses: docker/[email protected]++ - name: Login to Docker Hub+ uses: docker/login-action@v1+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}++ - name: Build and push immich-microservices release+ uses: docker/[email protected]+ with:+ context: ./microservices+ file: ./microservices/Dockerfile+ platforms: linux/arm/v7,linux/amd64+ push: ${{ github.event_name != 'pull_request' }}+ tags: ${{ steps.previoustag.outputs.tag }}+ labels: ${{ steps.meta.outputs.labels }}\ No newline at end of filediff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex 8fb7250b2f..31dbafad3a 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -10,9 +10,7 @@ services:expose:- "3000"volumes:- - ../server:/usr/src/app- ${UPLOAD_LOCATION}:/usr/src/app/upload- - /usr/src/app/node_modulesenv_file:- .envenvironment:@@ -33,9 +31,7 @@ services:expose:- "3001"volumes:- - ../microservices:/usr/src/app- ${UPLOAD_LOCATION}:/usr/src/app/upload- - /usr/src/app/node_modulesenv_file:- .envenvironment:@@ -84,27 +80,6 @@ services:depends_on:- immich_server- # immich_tf_fastapi:- # container_name: immich_tf_fastapi- # image: tensor_flow_fastapi:1.0.0- # restart: always- # command: uvicorn app.main:app --proxy-headers --host 0.0.0.0 --port 8000 --reload- # build:- # context: ../machine_learning- # target: cpu- # dockerfile: ../machine_learning/Dockerfile- # volumes:- # - ../machine_learning/app:/code/app- # - ${UPLOAD_LOCATION}:/code/app/upload- # ports:- # - 2285:8000- # expose:- # - "8000"- # depends_on:- # - database- # networks:- # - immich_network-networks:immich_network:volumes:diff --git a/mobile/lib/modules/login/ui/login_form.dart b/mobile/lib/modules/login/ui/login_form.dartindex 0cde3da48c..213ca92684 100644--- a/mobile/lib/modules/login/ui/login_form.dart+++ b/mobile/lib/modules/login/ui/login_form.dart@@ -14,7 +14,7 @@ class LoginForm extends HookConsumerWidget {Widget build(BuildContext context, WidgetRef ref) {final usernameController = useTextEditingController(text: '[email protected]');final passwordController = useTextEditingController(text: 'password');- final serverEndpointController = useTextEditingController(text: 'http://192.168.1.216:2283');+ final serverEndpointController = useTextEditingController(text: 'http://192.168.1.103:2283');return Center(child: ConstrainedBox(