vubuntu/.github/workflows/dockerio-push.yml

24 lines
480 B
YAML

name: Docker.io Image Push
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 ../ --tag vubuntu:latest && docker push vubuntu:latest