High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
Move docker login step to after build (#367)
bo0tzz6021124688d1
diff --git a/.github/workflows/build_push_docker_latest.yml b/.github/workflows/build_push_docker_latest.ymlindex f26857358c..a12941df38 100644--- a/.github/workflows/build_push_docker_latest.yml+++ b/.github/workflows/build_push_docker_latest.yml@@ -21,20 +21,21 @@ jobs:- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- - 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 Repouses: docker/[email protected]with:context: ./serverfile: ./server/Dockerfileplatforms: linux/arm/v7,linux/amd64,linux/arm64- push: truetags: |altran1502/immich-server:latest+ - name: Login to Docker Hub+ uses: docker/login-action@v2+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Docker push+ run: docker push altran1502/immich-server:latestbuild_and_push_machine_learning_latest:runs-on: ubuntu-latest@@ -49,20 +50,21 @@ jobs:- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- - name: Login to Docker Hub- uses: docker/login-action@v2- with:- username: ${{ secrets.DOCKERHUB_USERNAME }}- password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Build and Push Machine Learninguses: docker/[email protected]with:context: ./machine-learningfile: ./machine-learning/Dockerfileplatforms: linux/arm/v7,linux/amd64- push: truetags: |altran1502/immich-machine-learning:latest+ - name: Login to Docker Hub+ uses: docker/login-action@v2+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Docker push+ run: docker push altran1502/immich-machine-learning:latestbuild_and_push_web_latest:runs-on: ubuntu-latest@@ -76,11 +78,6 @@ jobs:- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- - name: Login to Docker Hub- uses: docker/login-action@v2- with:- username: ${{ secrets.DOCKERHUB_USERNAME }}- password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Build and Push Webuses: docker/[email protected]with:@@ -88,9 +85,15 @@ jobs:file: ./web/Dockerfileplatforms: linux/arm/v7,linux/amd64,linux/arm64target: prod- push: truetags: |altran1502/immich-web:latest+ - name: Login to Docker Hub+ uses: docker/login-action@v2+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Docker push+ run: docker push altran1502/immich-web:latestbuild_and_push_nginx_latest:runs-on: ubuntu-latest@@ -104,17 +107,18 @@ jobs:- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- - name: Login to Docker Hub- uses: docker/login-action@v2- with:- username: ${{ secrets.DOCKERHUB_USERNAME }}- password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Build and Push Proxyuses: docker/[email protected]with:context: ./nginxfile: ./nginx/Dockerfileplatforms: linux/arm/v7,linux/amd64,linux/arm64- push: truetags: |altran1502/immich-proxy:latest+ - name: Login to Docker Hub+ uses: docker/login-action@v2+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Docker push+ run: docker push altran1502/immich-proxy:latestdiff --git a/.github/workflows/build_push_docker_staging.yml b/.github/workflows/build_push_docker_staging.ymlindex 58ece0f172..d359b86c6d 100644--- a/.github/workflows/build_push_docker_staging.yml+++ b/.github/workflows/build_push_docker_staging.yml@@ -23,20 +23,22 @@ jobs:- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- - 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 Repouses: docker/[email protected]with:context: ./serverfile: ./server/Dockerfileplatforms: linux/arm/v7,linux/amd64,linux/arm64- push: ${{ github.event_name == 'pull_request' }}tags: |altran1502/immich-server:staging+ - name: Login to Docker Hub+ uses: docker/login-action@v2+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Docker push+ if: ${{ github.event_name == 'pull_request' }}+ run: docker push altran1502/immich-server:stagingbuild_and_push_machine_learning_staging:runs-on: ubuntu-latest@@ -51,20 +53,22 @@ jobs:- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- - name: Login to Docker Hub- uses: docker/login-action@v2- with:- username: ${{ secrets.DOCKERHUB_USERNAME }}- password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Build and Push Machine Learninguses: docker/[email protected]with:context: ./machine-learningfile: ./machine-learning/Dockerfileplatforms: linux/arm/v7,linux/amd64- push: ${{ github.event_name == 'pull_request' }}tags: |altran1502/immich-machine-learning:staging+ - name: Login to Docker Hub+ uses: docker/login-action@v2+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Docker push+ if: ${{ github.event_name == 'pull_request' }}+ run: docker push altran1502/immich-machine-learning:stagingbuild_and_push_web_staging:runs-on: ubuntu-latest@@ -78,11 +82,6 @@ jobs:- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- - name: Login to Docker Hub- uses: docker/login-action@v2- with:- username: ${{ secrets.DOCKERHUB_USERNAME }}- password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Build and Push Webuses: docker/[email protected]with:@@ -90,9 +89,16 @@ jobs:file: ./web/Dockerfileplatforms: linux/arm/v7,linux/amd64,linux/arm64target: prod- push: ${{ github.event_name == 'pull_request' }}tags: |altran1502/immich-web:staging+ - name: Login to Docker Hub+ uses: docker/login-action@v2+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Docker push+ if: ${{ github.event_name == 'pull_request' }}+ run: docker push altran1502/immich-web:stagingbuild_and_push_nginx_staging:runs-on: ubuntu-latest@@ -106,17 +112,19 @@ jobs:- name: Set up Docker Buildxid: buildxuses: docker/[email protected]- - name: Login to Docker Hub- uses: docker/login-action@v2- with:- username: ${{ secrets.DOCKERHUB_USERNAME }}- password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Build and Push Proxyuses: docker/[email protected]with:context: ./nginxfile: ./nginx/Dockerfileplatforms: linux/arm/v7,linux/amd64,linux/arm64- push: ${{ github.event_name == 'pull_request' }}tags: |- altran1502/immich-proxy:staging\ No newline at end of file+ altran1502/immich-proxy:staging+ - name: Login to Docker Hub+ uses: docker/login-action@v2+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Docker push+ if: ${{ github.event_name == 'pull_request' }}+ run: docker push altran1502/immich-proxy:staging\ No newline at end of file