Skip to content

Trying an update

Trying an update #3

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: |
docker login -u davepaulsanders -p ${{ secrets.DOCKER_HUB_TOKEN }}
docker push davepsandy/portfolio:latest