Skip to content

Update dockerhub workflow #4

Update dockerhub workflow

Update dockerhub workflow #4

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
repository: ${{ secrets.DOCKERHUB_USERNAME }}/dotfiles
tags: latest, ${{ github.run_number }}