Skip to content

Build and Push Docker Image #331

Build and Push Docker Image

Build and Push Docker Image #331

Workflow file for this run

name: Build and Push Docker Image
on:
push:
paths:
- 'Dockerfile'
schedule:
- cron: "0 0 */3 * *"
workflow_dispatch:
inputs:
version:
description: 'image version'
required: true
default: 'latest'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: wfxr/dotfiles:${{ github.event.inputs.version || 'latest' }}