Skip to content

Commit b5b9599

Browse files
committed
ci
1 parent 96e25d6 commit b5b9599

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
name: Build and push image
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v3
17+
- name: Log in to DockerHub
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ secrets.DOCKERHUB_USERNAME }}
21+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
22+
- name: Build and push Docker image with sha tag
23+
run: make docker-build docker-push IMG=igrowdigital/prometheus-docker-sd:${{ github.sha }}
24+
- name: Build and push Docker image latest tag
25+
run: make docker-build docker-push IMG=igrowdigital/prometheus-docker-sd:latest

0 commit comments

Comments
 (0)