Skip to content

Commit

Permalink
Adding basic DockerHub deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafuller committed May 3, 2024
1 parent 2acacef commit ec28f51
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Docker

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name == 'push' }}
tags: joshuafuller/teslathermacam:${{ github.sha }}

- name: Output image digest
run: echo "The image digest is ${{ steps.docker_build.outputs.digest }}"

0 comments on commit ec28f51

Please sign in to comment.