Skip to content
name: Build and Publish Docker
on:
push:
paths:
- 'src/Dockerfile'
- 'src/scripts/**'
branches:
- main
jobs:
build-and-publish-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Docker image
uses: docker/build-push-action@v2
with:
context: ./src
file: src/Dockerfile
push: true
tags: cioddi/autobashcraft:latest