Skip to content

Merge pull request #28 from bbfrederick/dependabot/github_actions/doc… #168

Merge pull request #28 from bbfrederick/dependabot/github_actions/doc…

Merge pull request #28 from bbfrederick/dependabot/github_actions/doc… #168

name: Upload latest to DockerHub
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get version number
id: get_version
run: echo "VERSION=${{ github.ref }}" >> $GITHUB_OUTPUT
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
push: true
tags: fredericklab/capcalc:latest