remove redundant step

This commit is contained in:
JurajKubrican
2024-10-29 08:52:37 +01:00
parent 6bd3bddbd9
commit e9081c9bdc

View File

@@ -14,16 +14,20 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Go # - name: Set up Go
uses: actions/setup-go@v3 # uses: actions/setup-go@v3
with: # with:
go-version: '1.23' # go-version: '1.23'
- name: Download dependencies # - name: Download dependencies
run: go mod download # run: go mod download
- name: Build # - name: Build
run: go build -o server src/main.go # 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 - name: Log in to GitHub Container Registry
uses: docker/login-action@v2 uses: docker/login-action@v2
@@ -31,10 +35,6 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }} 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 - name: Push Docker image to GitHub Container Registry
run: | run: |