Skip to content

Commit

Permalink
Update circleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
chayev committed Jun 11, 2023
1 parent 5e2db32 commit 9743997
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ workflows:
jobs:
test:
docker:
- image: cimg/go:1.19.4
- image: cimg/go:1.20
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -79,13 +79,13 @@ jobs:
type: boolean
default: false
docker:
- image: cimg/go:1.19.4
- image: cimg/go:1.20
steps:
- checkout
- run:
name: 'Install GoReleaser'
command: |
curl -sSL "https://github.com/goreleaser/goreleaser/releases/download/v1.14.0/goreleaser_Linux_x86_64.tar.gz" | sudo tar -xz -C /usr/local/bin goreleaser
curl -sSL "https://github.com/goreleaser/goreleaser/releases/download/v1.18.2/goreleaser_Linux_x86_64.tar.gz" | sudo tar -xz -C /usr/local/bin goreleaser
goreleaser --version
- unless:
condition: << parameters.publish >>
Expand All @@ -112,7 +112,7 @@ jobs:
type: boolean
default: false
docker:
- image: cimg/go:1.19.4
- image: cimg/go:1.20
steps:
- checkout
- run:
Expand All @@ -123,7 +123,7 @@ jobs:
command: cd webapp && go build -o yurl-webapp
deploy:
docker:
- image: cimg/go:1.19.4
- image: cimg/go:1.20
steps:
- checkout
- add_ssh_keys
Expand All @@ -139,7 +139,7 @@ jobs:
ssh-keyscan 23.239.13.80 >> ~/.ssh/known_hosts
scp -r ./webapp/yurl.service [email protected]:/lib/systemd/system/
# ssh [email protected] "systemctl stop yurl.service"
ssh [email protected] "systemctl stop yurl.service"
scp ./webapp/yurl-webapp [email protected]:/usr/local/yurl/yurl-webapp
scp -r ./webapp/tpl [email protected]:/usr/local/yurl/
Expand Down

0 comments on commit 9743997

Please sign in to comment.