2022-03-29 08:56:59 -05:00
|
|
|
name: Build Server - Release
|
2022-02-06 14:06:01 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildandpush:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-11 17:01:58 -05:00
|
|
|
uses: actions/checkout@v3
|
2022-02-06 14:06:01 -05:00
|
|
|
with:
|
2022-02-06 21:31:32 -05:00
|
|
|
ref: "main" # branch
|
2022-02-06 14:06:01 -05:00
|
|
|
# https://github.com/docker/setup-qemu-action#usage
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1.2.0
|
|
|
|
# https://github.com/marketplace/actions/docker-setup-buildx
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@v1.6.0
|
|
|
|
# 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
|
2022-03-16 10:22:06 -05:00
|
|
|
uses: docker/build-push-action@v2.10.0
|
2022-02-06 14:06:01 -05:00
|
|
|
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
|
2022-02-09 21:52:38 -05:00
|
|
|
platforms: linux/arm/v7,linux/amd64,linux/arm64
|
2022-02-06 14:06:01 -05:00
|
|
|
pull: true
|
|
|
|
push: true
|
|
|
|
tags: |
|
2022-03-29 08:56:59 -05:00
|
|
|
altran1502/immich-server:${{github.ref_name}}
|