forked from immich-app/immich
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and tag docker image for Dockerhub release (immich-app#111)
* Clean up Dockerfile and added action to build microservice latest * Combine build microservices and server into the same action * Added build and push release version for microservices
- Loading branch information
1 parent
a1481c1
commit 8e80825
Showing
5 changed files
with
134 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,37 +2,94 @@ name: Build Server - Release | |
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
buildandpush: | ||
build_and_push_server_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
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 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 | ||
|
||
- name: Build and push immich-server release | ||
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:${{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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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( | ||
|