add hocuspocus server along side our other node stuff #230
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Publish Docker image | |
on: | |
push: | |
release: | |
types: [published] | |
jobs: | |
push_to_registry: | |
name: Push Docker image to Docker Hub | |
runs-on: ubuntu-latest | |
env: | |
HAVESECRET: ${{ secrets.DOCKER_USERNAME }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
if: env.HAVESECRET != null | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
if: env.HAVESECRET != null | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v4 | |
if: env.HAVESECRET != null | |
with: | |
images: loomio/loomio_channel_server | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v4 | |
if: env.HAVESECRET != null | |
with: | |
context: . | |
push: true | |
tags: loomio/loomio_channel_server:latest | |
labels: ${{ steps.meta.outputs.labels }} |