Skip to content

Merge pull request #97 from joshua-stauffer/m/simplify_server_2 #8

Merge pull request #97 from joshua-stauffer/m/simplify_server_2

Merge pull request #97 from joshua-stauffer/m/simplify_server_2 #8

name: TheHistoryAtlas Docker Image CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./server
platforms: linux/amd64, linux/arm64
file: ./server/Dockerfile
push: true
tags: ilriccio/thehistoryatlas:server-${{ github.sha }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}