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

Migrate builds to Github Actions #104

Closed
wants to merge 1 commit into from

Conversation

utsavanand2
Copy link

@utsavanand2 utsavanand2 commented Dec 11, 2020

Signed-off-by: Utsav Anand [email protected]

Description

Moves builds from Travis to Github Actions

Motivation and Context

- [ ] I have raised an issue to propose this change ([required]
Issue 1585 for reference

(https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md))
Move builds to Github Actions

How Has This Been Tested?

Check the build statuses:
build: https://github.com/utsavanand2/nats-queue-worker/runs/1536136986?check_suite_focus=true
publish: https://github.com/utsavanand2/nats-queue-worker/runs/1536224826?check_suite_focus=true

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Dockerfile Outdated Show resolved Hide resolved
@utsavanand2
Copy link
Author

Resolved the previous issues with the PR.

name: Set Username/Repo and ImagePrefix as ENV vars
run: |
echo "USER_REPO"=$(echo "$GITHUB_REPOSITORY" | awk '{print tolower($1)}' | sed -e "s/:refs//") >> $GITHUB_ENV && \
echo "IMAGE_PREFIX"=$(echo "ghcr.io/${{ github.repository_owner }}/queue-worker" | awk '{print tolower($1)}' | sed -e "s/:refs//") >> $GITHUB_ENV
Copy link
Member

Choose a reason for hiding this comment

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

IMAGE_PREFIX looks different to how we did this elsewhere? Can you make the example more consistent with faas-netes or faas?

@alexellis
Copy link
Member

@utsavanand2 I still need your help with this PR you created. It isn’t consistent with the other builds we have merged, can you go ahead and remove the IMAGE_PREFIX etc and make it work like the other builds we have merged? Thank you 🙏

@utsavanand2
Copy link
Author

Sure @alexellis will do this at the earliest

@alexellis
Copy link
Member

How about this project as a template?

@alexellis
Copy link
Member

We can't wait any longer for this, I'm closing it and taking it on myself.

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

Successfully merging this pull request may close these issues.

None yet

2 participants