5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-29 17:56:22 +00:00

fix: no duplicar el remote

This commit is contained in:
f 2023-03-15 11:23:35 -03:00
parent ae7564dbc0
commit 0c285af9f2

View file

@ -35,14 +35,14 @@ pipeline:
- "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -" - "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -"
- "git config user.name Woodpecker" - "git config user.name Woodpecker"
- "git config user.email ci@sutty.coop.ar" - "git config user.email ci@sutty.coop.ar"
- "git remote add origin $${ORIGIN}" - "git remote add upstream $${ORIGIN}"
- "git checkout -B ${CI_COMMIT_BRANCH}" - "git checkout -B ${CI_COMMIT_BRANCH}"
- "yarn" - "yarn"
- "cp .env.example .env" - "cp .env.example .env"
- "dotenv bundle install --path=vendor" - "dotenv bundle install --path=vendor"
- "dotenv RAILS_ENV=production bundle exec rails assets:precompile assets:clean" - "dotenv RAILS_ENV=production bundle exec rails assets:precompile assets:clean"
- "git add public && git commit -m \"ci: assets [skip ci]\"" - "git add public && git commit -m \"ci: assets [skip ci]\""
- "git push origin ${CI_COMMIT_BRANCH}" - "git push upstream ${CI_COMMIT_BRANCH}"
secrets: secrets:
- "SSH_KEY" - "SSH_KEY"
- "KNOWN_HOSTS" - "KNOWN_HOSTS"