Merge pull request #253 from flatironinstitute/update/stan-2.36.0 #1
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
name: Docker image deploy | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "backend/**" | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'Docker image tag' | |
required: true | |
default: 'latest' | |
jobs: | |
docker-deploy: | |
name: Docker deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Builder | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
run: | | |
cd backend/ | |
INPUT_TAG=${{ github.event.inputs.tag }} | |
TAG=${INPUT_TAG:-"latest"} | |
docker build -t ghcr.io/flatironinstitute/stan-wasm-server:$TAG . | |
docker push ghcr.io/flatironinstitute/stan-wasm-server:$TAG |