Skip to content

Bump ip from 2.0.0 to 2.0.1 in /UI #2

Bump ip from 2.0.0 to 2.0.1 in /UI

Bump ip from 2.0.0 to 2.0.1 in /UI #2

Workflow file for this run

name: Publish to DockerHub
on: [push, pull_request, workflow_dispatch]
jobs:
build_docker:
name: Build Docker image on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies and build
run: npm i -f; npm run build
- name: Set up QEMU
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
if: startsWith(github.ref, 'refs/tags/v')
id: buildx
uses: docker/setup-buildx-action@master
- name: Get Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: josephdadams/tallyarbiter
tags: |
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=ref,event=tag
flavor: |
latest=false
- name: Login to DockerHub
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Create env file
run: |
touch .env
echo SENTRY_ENABLED=1 >> .env
echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env
- name: Build and push
if: startsWith(github.ref, 'refs/tags/v') != true
uses: docker/build-push-action@v5
with:
context: .
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push (multiarch)
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/s390x,linux/arm/v7,linux/arm/v6