mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
f1396761b0
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1.6.0 to 2.0.0. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v1.6.0...v2.0.0) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
83 lines
2.3 KiB
YAML
83 lines
2.3 KiB
YAML
name: Build and push Docker image - Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
build_and_push_server_release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: "main"
|
|
fetch-depth: 0
|
|
|
|
- name: 'Get Previous tag'
|
|
id: previoustag
|
|
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
|
with:
|
|
fallback: latest
|
|
|
|
- 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-server release
|
|
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:${{ steps.previoustag.outputs.tag }}
|
|
|
|
build_and_push_microservice_release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: "main"
|
|
fetch-depth: 0
|
|
|
|
- name: 'Get Previous tag'
|
|
id: previoustag
|
|
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
|
with:
|
|
fallback: latest
|
|
|
|
- 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-microservices release
|
|
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:${{ steps.previoustag.outputs.tag }} |