Skip to content

Commit

Permalink
Fixing uniqueness issue with package names in github workflows (#12)
Browse files Browse the repository at this point in the history
* Updating GH workflows to not use the same hard-coded package name across all repos

* doc update

* Updating readme with a note about forks
  • Loading branch information
schottra authored May 8, 2020
1 parent a28a384 commit 752c466
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions boilerplate-repo/boilerplate/lyft/github_workflows/Readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ Provides a two github actions workflows.

Add ``lyft/github_workflows`` to your ``boilerplate/update.cfg`` file.

Add a github secret ``flytegithub_repo`` with a the name of your fork (e.g. ``my_company/flytepropeller``).
Add a github secret ``package_name`` with the name to use for publishing (e.g. ``flytepropeller``). Typicaly, this will be the same name as the repository.

*Note*: If you are working on a fork, include that prefix in your package name (``myfork/flytepropeller``).

The actions will push to 2 repos:

1. ``docker.pkg.github.com/lyft/<repo>/operator``
2. ``docker.pkg.github.com/lyft/<repo>/operator-stages`` : this repo is used to cache build stages to speed up iterative builds after.
1. ``docker.pkg.github.com/lyft/<repo>/<package_name>``
2. ``docker.pkg.github.com/lyft/<repo>/<package_name>-stages`` : this repo is used to cache build stages to speed up iterative builds after.

There are two workflows that get deployed:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
image_name: ${{ secrets.flytegithub_repo }}/operator
image_name: ${{ secrets.package_name }}
image_tag: latest,${{ github.sha }},${{ steps.bump-version.outputs.tag }}
push_git_tag: true
registry: docker.pkg.github.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
image_name: ${{ secrets.flytegithub_repo }}/operator
image_name: ${{ secrets.package_name }}
image_tag: ${{ github.sha }}
push_git_tag: true
registry: docker.pkg.github.com

0 comments on commit 752c466

Please sign in to comment.