Skip to content

Workflow file for this run

name: Build and Publish image to Docker Hub
on:
push:
branches:
- main
jobs:
publish_images:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: linux/amd64
- name: build image
run: |
docker build -t davepsandy/portfolio:latest .
- name: push image to docker hub
run: |
docker login -u davepaulsanders -p ${{ secrets.DOCKER_HUB_TOKEN }}
docker push davepsandy/portfolio:latest