Skip to content

Merge pull request #24 from script3/fix-docker-ci #2

Merge pull request #24 from script3/fix-docker-ci

Merge pull request #24 from script3/fix-docker-ci #2

Workflow file for this run

name: Publish Docker
on:
push:
tags:
- 'v*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: script3
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: script3/auctioneer-bot:latest,script3/auctioneer-bot:${{ github.ref_name }}