-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from heroku/travis-to-gha
Travis to GHA migration
- Loading branch information
Showing
4 changed files
with
67 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: actions/ci | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
env: | ||
ImageOS: ubuntu20 | ||
with: | ||
go-verion: 1.18 | ||
check-latests: true | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Run Test | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: actions/release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Make Debs | ||
run: | | ||
make debs | ||
echo DEB_VERSION=$(git describe --tags --always | sed s/^v//) >> $GITHUB_ENV | ||
- name: Make Release | ||
uses: ncipollo/release-action@v1 | ||
env: | ||
ARTIFACT: log-shuttle_${{ env.DEB_VERSION }}_amd64.deb | ||
with: | ||
artifacts: ${{ env.ARTIFACT }} | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.2 | ||
- name: Push to packagecloud.io | ||
env: | ||
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} | ||
ARTIFACT: log-shuttle_${{ env.DEB_VERSION }}_amd64.deb | ||
run: | | ||
gem install package_cloud | ||
package_cloud push heroku/open/ubuntu/trusty ./${{ env.ARTIFACT }} | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Push to Docker Hub | ||
run: make docker-push |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters