We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dff80a commit cbdb2a1Copy full SHA for cbdb2a1
.github/workflows/docker-image.yml
@@ -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
26
+ platforms: linux/amd64,linux/arm64
27
+ context: .
28
+ push: true
29
+ tags: golangboyme/wsproxy
0 commit comments