Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
version: latest
args: -f .goreleaser.executor.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser [Main]
uses: goreleaser/goreleaser-action@v2.6.1
with:
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.executor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ builds:
- CGO_ENABLED=0
release:
disable: true
snapshot:
name_template: "{{.Version}}"
dockers:
- goos: linux
goarch: amd64
Expand Down
10 changes: 6 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env:
- OPTIMUS_RELEASE_URL=https://github.com/odpf/optimus/releases/download/v0.2.0-rc.2/optimus_0.2.0-rc.2_linux_x86_64.tar.gz
- OPTIMUS_RELEASE_URL=https://github.com/odpf/optimus/releases/download/v0.2.0-alpha/optimus_0.2.0-alpha_linux_x86_64.tar.gz

before:
hooks:
Expand Down Expand Up @@ -36,7 +36,7 @@ release:
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
name_template: "{{.Version}}"
changelog:
sort: asc
filters:
Expand All @@ -57,6 +57,7 @@ dockers:
- ./entrypoint.sh
build_flag_templates:
- "--build-arg=OPTIMUS_RELEASE_URL={{ .Env.OPTIMUS_RELEASE_URL }}"
- "--build-arg=VERSION={{ .Version }}"

brews:
- name: optimus-plugins-odpf
Expand All @@ -66,10 +67,11 @@ brews:
license: "Apache 2.0"
folder: Formula
description: "Optimus Plugins for warehouse"
skip_upload: auto
dependencies:
- odpf/taps/optimus
commit_author:
name: Kush Sharma
email: thekushsharma@gmail.com
name: github-actions[bot]
email: 41898282+github-actions[bot]@users.noreply.github.com
install: |
bin.install Dir["optimus-*"]
12 changes: 6 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
sleep 5

#get optimus version
echo "-- optimus client and server version"
/opt/optimus version --with-server
echo "-- optimus client version"
/opt/optimus version

# get resources
echo "-- initializing optimus assets"
OPTIMUS_ADMIN_ENABLED=1 /opt/optimus admin build instance "$JOB_NAME" --project \
"$PROJECT" --output-dir "$JOB_DIR" \
--type "$INSTANCE_TYPE" --name "$INSTANCE_NAME" \
--scheduled-at "$SCHEDULED_AT" --host "$OPTIMUS_HOST"
OPTIMUS_ADMIN_ENABLED=1 /opt/optimus admin build instance "$JOB_NAME" --project-name \
"$PROJECT" --output-dir "$JOB_DIR" \
--type "$INSTANCE_TYPE" --name "$INSTANCE_NAME" \
--scheduled-at "$SCHEDULED_AT" --host "$OPTIMUS_HOST"

# TODO: this doesnt support using back quote sign in env vars, fix it
echo "-- exporting env"
Expand Down
3 changes: 2 additions & 1 deletion task/bq2bq/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM docker.io/odpf/optimus-task-bq2bq-executor:latest
ARG VERSION
FROM docker.io/odpf/optimus-task-bq2bq-executor:${VERSION}

ARG OPTIMUS_RELEASE_URL
ENV GOOGLE_APPLICATION_CREDENTIALS /tmp/auth.json
Expand Down
18 changes: 17 additions & 1 deletion task/bq2bq/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/googleapis/google-cloud-go-testing v0.0.0-20210719221736-1c9a4c676720
github.com/hashicorp/go-hclog v1.2.0
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/odpf/optimus v0.2.0-rc.2.0.20220414071110-437b481f42a3
github.com/odpf/optimus v0.2.0-alpha
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/spf13/cast v1.4.1
github.com/stretchr/testify v1.7.1
Expand All @@ -30,8 +30,10 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emirpasic/gods v1.17.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.7 // indirect
Expand All @@ -43,20 +45,26 @@ require (
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.3 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/jeremywohl/flatten v1.0.1 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/kushsharma/parallel v0.2.1 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mcuadros/go-defaults v1.2.0 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/odpf/salt v0.0.0-20220224163336-9b41552dde37 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/pelletier/go-toml v1.9.3 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.12.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
Expand All @@ -66,9 +74,15 @@ require (
github.com/shopspring/decimal v1.3.1 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.8.1 // indirect
github.com/stretchr/objx v0.3.0 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
go.opencensus.io v0.23.0 // indirect
go.opentelemetry.io/otel v1.6.3 // indirect
go.opentelemetry.io/otel/exporters/jaeger v1.0.1 // indirect
go.opentelemetry.io/otel/sdk v1.0.1 // indirect
go.opentelemetry.io/otel/trace v1.6.3 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
Expand All @@ -85,6 +99,8 @@ require (
google.golang.org/grpc v1.45.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/validator.v2 v2.0.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading