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

CSS-4546 - Backport ci/cd and supporting files #963

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Jun 22, 2023

Description

This is an alternative to #961, here only the Github workflows have been backported from feature-rebac along with any changes needed to get the CI/CD working (which unfortunately were fairly numerous).

For a rundown of what's changed and why,

  • Added/updated Github workflow files.
  • Dockerfile update to remove the need to supply git credentials (used as part of the docker compose)
  • Docker compose updated with Traefik and Vault tweaks.
  • /local/vault setup files added to work with the compose changes
  • /local/traefik setup files added to work with the compose changes
  • Makefile tweaks for added targets and for removing the need to specify building Candid with git credentials.

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

# # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
# version: latest
# skip-pkg-cache: true
# skip-build-cache: true

build_test:
Copy link
Contributor

Choose a reason for hiding this comment

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

My inner OCD hates that this is _ and others are - :D

Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

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

lgtm, nice work


lint:
# Delete this if statement once charms are updated and include tox.
if: ${{ 1 }} == ${{ 2 }}
Copy link
Member

Choose a reason for hiding this comment

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

I guess, you can also use:

if: !always()

If you decided so, please update the other one below.

Copy link
Contributor

Choose a reason for hiding this comment

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

didn't know about always()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should dissapear soon anyway so I'll just leave it. Good to know about this though.

Copy link
Member

Choose a reason for hiding this comment

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

@ale8k Neither did I.

@kian99 kian99 merged commit 65d37d4 into canonical:main Jun 22, 2023
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.

3 participants