Skip to content

A little change to master action #16

A little change to master action

A little change to master action #16

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: prezhdarov/vmware-exporter:latest