Skip to content

Commit cbdb2a1

Browse files
committed
Create docker-image.yml
1 parent 3dff80a commit cbdb2a1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
branches: [ "dev" ] # Trigger the workflow on push to the main branch
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v1
16+
17+
- name: Log in to Docker Hub
18+
uses: docker/login-action@v1
19+
with:
20+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
21+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
22+
23+
- name: Build and push Docker image
24+
uses: docker/build-push-action@v2
25+
with:
26+
platforms: linux/amd64,linux/arm64
27+
context: .
28+
push: true
29+
tags: golangboyme/wsproxy

0 commit comments

Comments
 (0)