remove redundant step
This commit is contained in:
24
.github/workflows/docker-build.yml
vendored
24
.github/workflows/docker-build.yml
vendored
@@ -14,16 +14,20 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.23'
|
||||
# - name: Set up Go
|
||||
# uses: actions/setup-go@v3
|
||||
# with:
|
||||
# go-version: '1.23'
|
||||
|
||||
- name: Download dependencies
|
||||
run: go mod download
|
||||
# - name: Download dependencies
|
||||
# run: go mod download
|
||||
|
||||
- name: Build
|
||||
run: go build -o server src/main.go
|
||||
# - name: Build
|
||||
# run: go build -o server src/main.go
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build -t "ghcr.io/jurajkubrican/knet/go-web-server:latest" .
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v2
|
||||
@@ -32,10 +36,6 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build -t "ghcr.io/jurajkubrican/knet/go-web-server:latest" .
|
||||
|
||||
- name: Push Docker image to GitHub Container Registry
|
||||
run: |
|
||||
docker push "ghcr.io/jurajkubrican/knet/go-web-server:latest"
|
||||
|
||||
Reference in New Issue
Block a user