Get websockets working again #161
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 | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- "main" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Extract metadata (tags, labels) for the frontend | |
id: meta_frontend | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/cardano-scaling/hydra-doom-frontend | |
tags: | | |
type=raw,value=latest,enable={{is_default_branch}} | |
type=semver,pattern=v{{major}} | |
type=semver,pattern=v{{major}}.{{minor}} | |
type=semver,pattern=v{{version}} | |
type=sha | |
- name: Extract metadata (tags, labels) for the referee server docker image | |
id: meta_referee | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/cardano-scaling/hydra-doom-referee | |
tags: | | |
type=raw,value=latest,enable={{is_default_branch}} | |
type=semver,pattern=v{{major}} | |
type=semver,pattern=v{{major}}.{{minor}} | |
type=semver,pattern=v{{version}} | |
type=sha | |
- name: Extract metadata (tags, labels) for the AI docker image | |
id: meta_ai | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/cardano-scaling/hydra-doom-ai | |
tags: | | |
type=raw,value=latest,enable={{is_default_branch}} | |
type=semver,pattern=v{{major}} | |
type=semver,pattern=v{{major}}.{{minor}} | |
type=semver,pattern=v{{version}} | |
type=sha | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io/cardano-scaling | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push frontend image | |
uses: docker/build-push-action@v5 | |
with: | |
file: ./Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ steps.meta_frontend.outputs.tags }} | |
labels: ${{ steps.meta_frontend.outputs.labels }} | |
- name: Build and push referee image | |
uses: docker/build-push-action@v5 | |
with: | |
file: ./referee/Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ steps.meta_referee.outputs.tags }} | |
labels: ${{ steps.meta_referee.outputs.labels }} | |
- name: Build and push AI image | |
uses: docker/build-push-action@v5 | |
with: | |
file: ./ai/Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ steps.meta_ai.outputs.tags }} | |
labels: ${{ steps.meta_ai.outputs.labels }} |