Skip to content

Updating run

Updating run #6

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: build image
run: |
docker build -t davepsandy/portfolio:latest .
- name: push image to docker hub
run: |
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u davepaulsanders --password-stdin
docker push davepsandy/portfolio:latest