Skip to content

Commit

Permalink
Merge pull request #1 from iterait/ci
Browse files Browse the repository at this point in the history
Add basic CI
  • Loading branch information
petrbel authored Jan 12, 2024
2 parents f1925cc + af33543 commit 6eeadd2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: dockerhub

on:
push:
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: iterait/prometheus-docker-discovery:${{ github.sha }}, iterait/prometheus-docker-discovery:${{ github.ref_name }}

0 comments on commit 6eeadd2

Please sign in to comment.