File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ -
13+ name : Checkout
14+ uses : actions/checkout@v4
15+ -
16+ name : Login to Docker Hub
17+ uses : docker/login-action@v3
18+ with :
19+ username : ${{ secrets.DOCKERHUB_USERNAME }}
20+ password : ${{ secrets.DOCKERHUB_TOKEN }}
21+ -
22+ name : Set up Docker Buildx
23+ uses : docker/setup-buildx-action@v3
24+ -
25+ name : Build and push
26+ uses : docker/build-push-action@v5
27+ with :
28+ context : .
29+ file : ./Dockerfile
30+ push : true
31+ tags : ${{ secrets.DOCKERHUB_USERNAME }}/simple-http-server:latest
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ WORKDIR /build
1313COPY . .
1414
1515# Build the application
16- RUN go build -o simple_http_server ./simple_http_server.go ./utils.go
16+ RUN go build -o simple_http_server ./simple_http_server.go
1717
1818# Move to /dist directory as the place for resulting binary folder
1919WORKDIR /dist
You can’t perform that action at this time.
0 commit comments