-
Notifications
You must be signed in to change notification settings - Fork 226
Conversation
This commit adds github actions support and create a multiarch build for edge-auth. This build was tested on my own OFC installation by building, pusing to my GH repo and deploying the built image Signed-off-by: Alistair Hey <[email protected]>
This commit converts the edge-route dockerfile to multi-arch builds. This was tested on a ofc cluster. After swapping in the new container the service worked as normal Signed-off-by: Alistair Hey <[email protected]>
openfaas/faas#1585 part of this |
This builds the faas-cli components with github actions as part of CI Signed-off-by: Alistair Hey <[email protected]>
- name: Run CI | ||
run: sh ./contrib/ci.sh | ||
|
||
# Test building the non-cli Containers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-cli containers?
- name: Login to Docker Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ github.repository_owner }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, who is the owner when it's an org? Can you test and find out please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use DOCKER_USERNAME it will just be easier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
secrets.DOCKER_USERNAME will cause every occurrence of the username to be starred out, which is annoying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have that everywhere else and I don't think that openfaas can push images? I can't get a PTA for openfaas the owner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
This looks great - we are getting there! I'm not seeing the gitlab stack file being built? How about the aws one too? |
I'll put a PR up for this for you to review |
Description
Big PR to move over to GH Actions for building and publishing OFC containers
This will build containers and stack.yml and publish new versions with a tag that matches a release tag.
We will need to switch the chart to be using the release tag and pull from ghcr.io rather than dockerhub next.
Closes #684
How Has This Been Tested?
Containers are built and publised on relese tag
They are built and the chart tests are run on commits and PRs
How are existing users impacted? What migration steps/scripts do we need?
We will be moving to GHCR for hosting images so will need to update the chart once they are pushed and public.
We will then need to update the chart to use the release tag as the image versions as we are going to be pushing those image tags from now on, rather than keeping each container on its own version.
This should make maintaining the chart and stack.yml easier going forward. It will however mean that users should be updating all of ofc components on each release rather than just the components that change. This should be easier once the helm chart goes into ofc-bootstrap as theres a flag being added to run only the chart install
Checklist:
I have:
git commit -s