Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Github Actions migration #689

Merged
merged 3 commits into from
Nov 18, 2020
Merged

Github Actions migration #689

merged 3 commits into from
Nov 18, 2020

Conversation

Waterdrips
Copy link
Contributor

@Waterdrips Waterdrips commented Nov 12, 2020

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:

  • updated the documentation and/or roadmap (if required)
  • read the CONTRIBUTION guide
  • signed-off my commits with git commit -s
  • added unit tests

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 <alistair@heyal.co.uk>
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 <alistair@heyal.co.uk>
@Waterdrips
Copy link
Contributor Author

openfaas/faas#1585 part of this

This builds the faas-cli components with github actions as part of CI

Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
- name: Run CI
run: sh ./contrib/ci.sh

# Test building the non-cli Containers
Copy link
Member

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 }}
Copy link
Member

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?

Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

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

Approved

@alexellis alexellis merged commit 5b1babe into openfaas:master Nov 18, 2020
@alexellis
Copy link
Member

This looks great - we are getting there!

I'm not seeing the gitlab stack file being built? How about the aws one too?

@alexellis
Copy link
Member

I'll put a PR up for this for you to review

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

Successfully merging this pull request may close these issues.

None yet

2 participants