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

Fixes #179: Migration of current travis ci to github-actions ci. #244

Merged
merged 6 commits into from
May 14, 2020

Conversation

ameydev
Copy link
Contributor

@ameydev ameydev commented Feb 9, 2020

ISSUE TYPE
  • Feature Pull Request

Fix for issue githib-actions

SUMMARY
  • Updated the golint path to $GOPATH/bin/golint to fix github-actions build failure.
  • Added docker push action step in current CI steps.
  • Added helm release step along with missing "helm init".

Checklist for Enabling github actions:
make sure to add below secrets in repo/settings/secrets

  • GH_TOKEN(github access token of charts repo)
  • DOCKER_USERNAME and DOCKER_PASSWORD (for infracloud/botkube repo).
  • That's it, by merging this PR, first github-actions workflow for botkube should be triggered :)

For reference the tested CI workflows on my repos:

Needed to update the golint path to $GOPATH/bin/golint to fix github-actions build failure.
Added docker push action step in current CI steps.
Added helm release step along with missing "helm init".
@ameydev ameydev requested a review from PrasadG193 February 9, 2020 20:28
env:
GO111MODULE: on
GOPATH: /home/runner/work/botkube
GOBIN: /home/runner/work/botkube/bin
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is $HOME value? Can we use $HOME to set the path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the value for $HOME is /home/runner but it gives error if we try to assign value of GOPATH to a relative path.
Check error.
so I think we need to give absolute path which would be /home/runner or can keep the same value.

git branch
git pull origin gh-pages
helm init --client-only
helm package --app-version v9.99.9-ci-test --version v9.99.9-dev ${{ github.workspace }}/helm/botkube/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please keep --app-version same as --version i.e v9.99.9-dev

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes sure, will update the change. I missed that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed the update!

@ameydev ameydev requested a review from PrasadG193 February 13, 2020 05:23
@PrasadG193
Copy link
Collaborator

Thanks for the PR @ameydev. LGTM

@ameydev ameydev requested a review from PrasadG193 February 19, 2020 07:02
@ameydev
Copy link
Contributor Author

ameydev commented Feb 19, 2020

Thanks for the PR @ameydev. LGTM

Your welcome! just a reminder
Before merging:
Checklist for Enabling github actions:
make sure to add below secrets in repo/settings/secrets

GH_TOKEN(github access token of charts repo)
DOCKER_USERNAME and DOCKER_PASSWORD (for infracloud/botkube repo).

@PrasadG193
Copy link
Collaborator

@ameydev We should get this merged early in this release cycle. Could you please remove .travis.yaml as a part of this PR?

@ameydev
Copy link
Contributor Author

ameydev commented Apr 29, 2020

@PrasadG193 I think we can keep travis and gh-actions both active for a while and once we make sure everything is working fine, can remove .travis.yaml.

@PrasadG193 PrasadG193 merged commit 03707b3 into kubeshop:develop May 14, 2020
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.

2 participants