Skip to content

Commit

Permalink
Revert "replacing travis with GH actions"
Browse files Browse the repository at this point in the history
This reverts commit 749ad2d.
  • Loading branch information
grandizzy committed Oct 13, 2021
1 parent 6d5a642 commit d506fc4
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 55 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/build.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dist: trusty
language: go
go:
- 1.15
go_import_path: github.com/makerdao/vdb-transformer-utilities
script:
- go run github.com/onsi/ginkgo/ginkgo -r
deploy:
- provider: script
script: bash ./.travis/deploy.sh
on:
branch: main
notifications:
email: false
30 changes: 30 additions & 0 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#! /usr/bin/env bash

set -e

function message() {
echo
echo -----------------------------------
echo "$@"
echo -----------------------------------
echo
}

TAG=latest
BUILDER_NAME=vdb-builder
RUNNER_NAME=vdb-runner

message BUILDING BUILDER DOCKER IMAGE
docker build -f dockerfiles/builder/Dockerfile . -t makerdao/$BUILDER_NAME:$TAG

message BUILDING RUNNER DOCKER IMAGE
docker build -f dockerfiles/runner/Dockerfile . -t makerdao/$RUNNER_NAME:$TAG

message LOGGING INTO DOCKERHUB
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USER" --password-stdin

message PUSHING BUILDER DOCKER IMAGE
docker push makerdao/$BUILDER_NAME:$TAG

message PUSHING RUNNER DOCKER IMAGE
docker push makerdao/$RUNNER_NAME:$TAG

0 comments on commit d506fc4

Please sign in to comment.