Skip to content

Commit 0512515

Browse files
committed
Merge branch 'master' of github.com:compolabs/spark-middleware
2 parents bc97941 + db39812 commit 0512515

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Push Docker Image with Buildx
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
runs-on: ${{ vars.RUNNER_SCALE_SET }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Login to Docker Registry
21+
uses: docker/login-action@v3
22+
with:
23+
registry: ${{ vars.DOCKER_REGISTRY }}
24+
username: ${{ vars.DOCKER_USERNAME }}
25+
password: ${{ secrets.DOCKER_PASSWORD }}
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Build and push
31+
uses: docker/build-push-action@v6
32+
with:
33+
push: true
34+
tags: ${{ vars.DOCKER_PROJECT }}/${{ vars.DOCKER_IMAGE }}:${{ github.sha }}

0 commit comments

Comments
 (0)