Skip to content

Commit

Permalink
Merge pull request #288 from detiber/master2main
Browse files Browse the repository at this point in the history
🏃 Update to reflect renaming of master branch to main
  • Loading branch information
detiber committed Sep 24, 2021
2 parents b552b02 + c143fdb commit 5c96390
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [opened, synchronize, reopened]
push:
branches:
- master
- main

env:
KUBEBUILDER_DIR: /tmp/kubebuilder_install
Expand Down Expand Up @@ -47,11 +47,11 @@ jobs:
env:
KUBEBUILDER_ASSETS: ${{ env.KUBEBUILDER_DIR }}/bin

# these next steps are used for merge to master (push the images)
# these next steps are used for merge to main (push the images)
# they really should be separate workflows or jobs, but github actions is awful about sharing between them, so it must be one job
- name: docker login
if: github.event_name == 'push' && endsWith(github.ref,'/master')
if: github.event_name == 'push' && endsWith(github.ref,'/main')
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: deploy # when merged into master, tag master and push - ideally, this would be a separate job, but you cannot share docker build cache between jobs
if: github.event_name == 'push' && endsWith(github.ref,'/master')
run: make cd CONFIRM=true BRANCH_NAME=master
- name: deploy # when merged into main, tag main and push - ideally, this would be a separate job, but you cannot share docker build cache between jobs
if: github.event_name == 'push' && endsWith(github.ref,'/main')
run: make cd CONFIRM=true BRANCH_NAME=main
2 changes: 1 addition & 1 deletion docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ When the VERSION file changes:
* CI copies the artifacts in `out/release/infrastructure-packet/<version>/*yaml` to the github releases
* CI builds docker images for each supported architecture as well as a multi-arch manifest, and tags it with:
* the git hash of the commit
* `master`
* `main`
* the semver tag of the release, e.g. `v0.3.1`
* the tag `latest`

0 comments on commit 5c96390

Please sign in to comment.