Skip to content

Commit

Permalink
Merge pull request #1230 from SciCatProject/allow--backend-image-to-s…
Browse files Browse the repository at this point in the history
…upport-multi-platform

chore: allow backend image to support multi-platforms
  • Loading branch information
nitrosx authored Jun 3, 2024
2 parents 1bc0cf5 + 2646f0d commit b3c7096
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Deploy

on:
push:
branches:
- master
branches:
- master

jobs:
deploy:
Expand All @@ -12,7 +12,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -22,22 +22,23 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create image tags
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/scicatproject/backend-next
flavor: latest=true # adds :latest tag to outputs.tags
tags: type=sha,format=long,prefix= # adds :<sha> tag to outputs.tags

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.meta.outputs.tags }}

- name: Trigger ESS pipeline
uses: swapActions/trigger-swap-deployment@v1
with:
Expand Down

0 comments on commit b3c7096

Please sign in to comment.