aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohan Brandhorst <[email protected]>2020-08-30 16:44:40 +0100
committerRon Evans <[email protected]>2020-08-31 14:15:05 +0200
commit0e6d2af028bb82e0bceb56c47da36a92220166b8 (patch)
treebc26a34a7458492fcad0f39aadb9d911ecc50a8e
parent0df4a7a35f2a7144c763869fed41281988c55521 (diff)
downloadtinygo-0e6d2af028bb82e0bceb56c47da36a92220166b8.tar.gz
tinygo-0e6d2af028bb82e0bceb56c47da36a92220166b8.zip
Fix arch release job
Instead of using su, which is blocking, set the user explicitly for each command.
-rw-r--r--.circleci/config.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index c876d1f04..94fe4b50f 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -341,40 +341,47 @@ commands:
name: Create TinyGo user
command: useradd -m tinygo
- run:
- name: Become TinyGo user
- command: su tinygo
- - run:
name: Start SSH Agent
+ user: tinygo
command: eval $(ssh-agent -s)
- run:
name: Add ARCH_RELEASE_SSH_PRIVATE_KEY identity
+ user: tinygo
command: echo "${ARCH_RELEASE_SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add -
- run:
name: Create SSH directory
+ user: tinygo
command: mkdir -p ~/.ssh && chmod 700 ~/.ssh
- run:
name: Add aur.archlinux.org to known hosts
+ user: tinygo
command: ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
- run:
name: Clone tinygo-bin repo
+ user: tinygo
command: git clone ssh://[email protected]/tinygo-bin.git ~/tinygo-bin
- run:
name: Update package version
+ user: tinygo
command: sed -i -E "s/(pkgver=)(.*)$/\1${CIRCLE_TAG}/" ~/tinygo-bin/PKGBUILD
- run:
name: Update file checksums
+ user: tinygo
command: cd ~/tinygo-bin && updpkgsums
- run:
name: Update .SRCINFO
+ user: tinygo
command: cd ~/tinygo-bin && makepkg --printsrcinfo > .SRCINFO
# Commit the update
- run:
name: Set git commit config
+ user: tinygo
command: |
git config --global user.email "[email protected]" &&
git config --global user.name "TinyGo Release Bot"
- run:
name: Commit and push changes
+ user: tinygo
command: |
cd ~/tinygo-bin &&
git commit -a -m "Update tinygo-bin to v${CIRCLE_TAG}" &&