Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add CI #3

Open
wants to merge 44 commits into
base: main
Choose a base branch
from
Open

WIP: Add CI #3

wants to merge 44 commits into from

Conversation

fazlerabbi37
Copy link
Member

@fazlerabbi37 fazlerabbi37 commented May 28, 2022

CI for build, test and release. maybe for automatic deploy as well!?

to do:

  • build
  • test
  • release
    • will happen on tag and if build is successful
  • deploy
    • will be done via manual action

created rust.yml to build binary
@fazlerabbi37 fazlerabbi37 changed the title Create rust.yml Add CI May 28, 2022
@fazlerabbi37
Copy link
Member Author

fazlerabbi37 commented May 28, 2022

using GH provided and suggested Rust action.

steps:
- name: add host key verification
run: |
eval $(ssh-agent -s)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try this

    - name: Configure ssh
      run: |
        mkdir -p /root/.ssh
        chmod -R 700 /root/.ssh
        cd /root/.ssh

        printf "${{ secrets.SSH_KEY }}\n" > id_rsa
        chmod 400 id_rsa

        ssh-keyscan aur.archlinux.org > known_hosts
        chmod 644 known_hosts

        cat > config <<EOF
        Host aur aur.archlinux.org
          User aur
          HostName aur.archlinux.org
        EOF

Copy link
Member Author

@fazlerabbi37 fazlerabbi37 May 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! it worked!

except for 2 things which might be useful for later.

  • mkdir -p /root/.ssh this fails because the runner runs as runner user
  • printf fails for some reason but echo works 🐸

@fazlerabbi37 fazlerabbi37 changed the title Add CI WIP: Add CI May 31, 2022
@fazlerabbi37 fazlerabbi37 self-assigned this Aug 2, 2022
@uthsobcb
Copy link

uthsobcb commented Sep 3, 2023

Any update regarding this?

@mdgaziur
Copy link
Collaborator

mdgaziur commented Sep 3, 2023 via email

@uthsobcb
Copy link

uthsobcb commented Sep 3, 2023

Why don't anybody merge this?

@mdgaziur
Copy link
Collaborator

mdgaziur commented Sep 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants