Skip to content

Compile and push to Docker Hub #1

Compile and push to Docker Hub

Compile and push to Docker Hub #1

Workflow file for this run

name: Compile and push to Docker Hub
on:
workflow_dispatch:
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64, linux/arm64/v8
push: true
tags: |
${{ vars.DOCKER_USERNAME }}/todd-howard-bot:latest
${{ vars.DOCKER_USERNAME }}/todd-howard-bot:${{ github.run_number }}