-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
GitHub Actions Migration - tracking issue #1585
GitHub Actions Migration - tracking issue #1585
Comments
/open |
/reopen |
Folks unfortunately the first set of merged PRs did not work as I don't believe that we tested them in our branches with a release tag before submitting the PR and asking for a merge. Let's tighten up our work before asking for a merge? Make sure release tags workI also noticed that the Docker v2 build/push action does not copy in a .git folder, this can be worked-around as follows (with a path and context). When these are missing, the code does a fresh clone / checkout of the code and lacks the .git folder used to get versions and tags. - name: Build multi-arch containers for validation only
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
outputs: "type=image,push=false"
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: |
ghcr.io/openfaas/faas-netes:${{ github.sha }} Include a NS variable in the image nameIn order to test in our own repos, we should each have some way of overwriting Keep naming consistentI noticed that in most PRs people changed the name of the build and publish step to whatever they preferred. Please don't. Let's make sure this is consistent for future maintenance. Match the build job with the filename too. Build on
|
This changes the name of "ci-only" action to build as per comments in openfaas/faas#1585. Also pins go version based on the same Signed-off-by: Alistair Hey <[email protected]>
This changes the name of "ci-only" action to build as per comments in openfaas/faas#1585. Also pins go version based on the same Signed-off-by: Alistair Hey <[email protected]>
This changes the name of "ci-only" action to build as per comments in openfaas/faas#1585. Also pins go version based on the same Signed-off-by: Alistair Hey <[email protected]>
fyi you can get the repo name like this in an action
then ref it with this
then users use ${{ github.repository_owner }} as the "DOCKER_USERNAME" for the docker login, rather than needing to set a secret to allow pusing to a user's ghcr repo while testing. (edit, changed based on conversations below, so may not make sense in those convos now) |
@Waterdrips Yes but the catch is |
it looks like its only scheduled builds that dont have events from the docs and forums, we dont use those currently. |
So using this instead of You can see the issue here: https://github.com/CodeCutterUK/nats-connector/runs/1395097635?check_suite_focus=true |
I never found ${{ github.repository_owner }} - i have found the GH Actions docs to be not amazing... I like that more than using the event... /so as far as i can tell the problem is:
so we need both the explicit docker username, or use the non-lowercased repo owner (however we decide to get it) - need to decide how we manage this, we could use the ${{ github.repository_owner }} as the dockerhub login, and have a step that gets the lowercase version for image tags, repo path etc? |
@CodeCutterUK updated based on the above:https://github.com/Waterdrips/openfaas-cloud/actions/runs/361500170 seems to work well without the secret existing |
Yes, works perfectly without the lowercase version of the username as a secret :) |
This changes the name of "ci-only" action to build as per comments in openfaas/faas#1585. Also pins go version based on the same Signed-off-by: Alistair Hey <[email protected]>
I completed the Github Action migration issue for the connector-sdk, here is the link below: |
Thanks to @cpanato who has volunteered to pick up the NATS queue worker. This will need a new PR, and I'd suggest using one of the other projects in this list as a template. For instance: https://github.com/openfaas/cron-connector |
Inlets
alexellis
openfaas
Merged:
Waiting on Review:
Pending:
OpenFaaS Incubator
The text was updated successfully, but these errors were encountered: