Skip to content

Update build.yml

Update build.yml #48

Workflow file for this run

name: Create and push Docker build image
on:
push:
branches: [ master ]
jobs:
push_to_dockerhub:
name: Publish Docker build image to Docker Hub
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push to Docker Hub
uses: docker/build-push-action@v2
with:
push: true
tags: shishkabob27/conker:latest