File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name: Build and Push Docker Image
2+
3+ on:
4+ push:
5+ branches:
6+ - main
7+
8+ jobs:
9+ build-and-push:
10+ runs-on: ubuntu-latest
11+ steps:
12+ - name: Checkout repository
13+ uses: actions/checkout@v4
14+
15+ - name: Set up QEMU
16+ uses: docker/setup-qemu-action@v3
17+
18+ - name: Set up Docker Buildx
19+ uses: docker/setup-buildx-action@v3
20+
21+ - name: Log in to DockerHub
22+ uses: docker/login-action@v3
23+ with:
24+ username: ${{ secrets.DOCKERHUB_USERNAME }}
25+ password: ${{ secrets.DOCKERHUB_PAT }}
26+
27+ - name: Build and push Docker image (multi-arch)
28+ uses: docker/build-push-action@v5
29+ with:
30+ context: .
31+ push: true
32+ tags: isaricpv/influxdb-summary-java:latest
33+ platforms: linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments