5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-09-28 17:26:57 +00:00

fix: no duplicar el remote

This commit is contained in:
f 2023-03-15 11:23:35 -03:00
parent 08cad58b77
commit 9773285e9f

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"