1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-22 01:47:08 +02:00

Fixed Github Aaction build release

This commit is contained in:
Alex Tran 2022-06-11 17:47:01 -05:00
parent a8220172f8
commit 53cd9fd8bf
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A

View File

@ -6,7 +6,7 @@ on:
types: [published] types: [published]
jobs: jobs:
build_and_push_server_release: build_and_push_server_monorepo_release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -44,43 +44,37 @@ jobs:
tags: | tags: |
altran1502/immich-server:${{ steps.previoustag.outputs.tag }} altran1502/immich-server:${{ steps.previoustag.outputs.tag }}
build_and_push_microservice_release: build_and_push_machine_learning_release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
ref: "main"
fetch-depth: 0 fetch-depth: 0
- name: "Get Previous tag" - name: "Get Previous tag"
id: previoustag id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1" uses: "WyriHaximus/github-action-get-previous-tag@v1"
with: with:
fallback: latest fallback: latest
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2.0.0 uses: docker/setup-qemu-action@v2.0.0
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v2.0.0 uses: docker/setup-buildx-action@v2.0.0
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Machine Learning
- name: Build and push immich-microservices release
uses: docker/build-push-action@v3.0.0 uses: docker/build-push-action@v3.0.0
with: with:
context: ./microservices context: ./machine-learning
file: ./microservices/Dockerfile file: ./machine-learning/Dockerfile
platforms: linux/arm/v7,linux/amd64 platforms: linux/arm/v7,linux/amd64
push: ${{ github.event_name != 'pull_request' }} push: true
tags: | tags: |
altran1502/immich-microservices:${{ steps.previoustag.outputs.tag }} altran1502/immich-machine-learning:${{ steps.previoustag.outputs.tag }}
build_and_push_web_release: build_and_push_web_release:
runs-on: ubuntu-latest runs-on: ubuntu-latest