Skip to content

Commit

Permalink
Merge pull request #867 from MikeMcQuaid/move_to_main
Browse files Browse the repository at this point in the history
Make `main` the default branch
  • Loading branch information
MikeMcQuaid authored Jan 1, 2024
2 parents ba5a1a2 + 5a69081 commit fbd4ea2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CodeQL
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
schedule:
- cron: "39 8 * * 5"
jobs:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: GitHub Actions CI
on:
push:
branches:
- master
- main
pull_request:
jobs:
style:
Expand Down Expand Up @@ -89,18 +89,26 @@ jobs:
run: |
docker build --build-arg RUBY_VERSION=$(cat .ruby-version) --tag strap .
docker tag strap mikemcquaid/strap:master
docker tag strap mikemcquaid/strap:main
docker tag strap mikemcquaid/strap:latest
docker tag strap ghcr.io/mikemcquaid/strap:master
docker tag strap ghcr.io/mikemcquaid/strap:main
docker tag strap ghcr.io/mikemcquaid/strap:latest
- name: Deploy the Docker image to GitHub Packages
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
run: |
echo ${{secrets.GITHUB_TOKEN}} | \
docker login --username=mikemcquaid --password-stdin ghcr.io
docker push ghcr.io/mikemcquaid/strap:master
docker push ghcr.io/mikemcquaid/strap:main
docker push ghcr.io/mikemcquaid/strap:latest
- name: Deploy the Docker image to Docker Hub
if: github.ref == 'refs/heads/master'
run: |
echo ${{secrets.DOCKER_TOKEN}} | \
docker login --username=mikemcquaid --password-stdin
docker push mikemcquaid/strap:master
docker push mikemcquaid/strap:main
docker push mikemcquaid/strap:latest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ Stable and in active development.
## License

Licensed under the [MIT License](https://en.wikipedia.org/wiki/MIT_License).
The full license text is available in [LICENSE.txt](https://github.com/MikeMcQuaid/strap/blob/master/LICENSE.txt).
The full license text is available in [LICENSE.txt](https://github.com/MikeMcQuaid/strap/blob/main/LICENSE.txt).

0 comments on commit fbd4ea2

Please sign in to comment.