Skip to content

Prevent interactive prompts during install #3

Prevent interactive prompts during install

Prevent interactive prompts during install #3

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: Build and tag Docker image
run: docker build -t ${{ secrets.DOCKERHUB_REF }} .
- name: Push Docker image to Docker Hub
run: docker push ${{ secrets.DOCKERHUB_REF }}