Skip to content

Build and push Docker image #38

Build and push Docker image

Build and push Docker image #38

Workflow file for this run

name: Build and push Docker image
on:
schedule:
- cron: '15 20 * * 0'
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to Docker Hub
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
push: true
pull: true
tags: |
${{ vars.DOCKERHUB_ORG }}/srf-github-runner-exporter:latest