dockerio-push

This commit is contained in:
Apoorv Vyavahare 2021-08-01 00:52:37 +05:30 committed by GitHub
parent 3a6713654b
commit 791ed564a5
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/dockerio-push.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & Push the Docker image
run: |
docker build . --file Dockerfile --tag vubuntu:latest
docker push vubuntu:latest