Skip to content

Commit

Permalink
Merge pull request #101 from heroku/travis-to-gha
Browse files Browse the repository at this point in the history
Travis to GHA migration
  • Loading branch information
agnaite authored Sep 26, 2022
2 parents 8ea471f + c2dc794 commit 3c3f8e0
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 39 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
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
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
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
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM gliderlabs/alpine:3.3
FROM alpine:latest

RUN apk-install ca-certificates
RUN apk add --no-cache ca-certificates && update-ca-certificates

# assumes log-shuttle has already been built into .docker_build/log-shuttle,
# which the Makefile does.
Expand Down

0 comments on commit 3c3f8e0

Please sign in to comment.