Skip to content

Commit

Permalink
chore: restructure transformer plugins (#33)
Browse files Browse the repository at this point in the history
* chore: restructure transformer plugins

* chore: restructure bq2bq dockerfile
  • Loading branch information
deryrahman authored Sep 25, 2024
1 parent 335cd55 commit 64a2bb8
Show file tree
Hide file tree
Showing 94 changed files with 24 additions and 5,510 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,40 @@ name: release
on:
push:
tags:
- 'v*'
- 'bq2bq/v*'

jobs:
release:
bq2bq:
if: startsWith(github.ref, 'refs/tags/bq2bq/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Login to DockerHub
uses: docker/login-action@v1
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run GoReleaser [Main]
uses: goreleaser/[email protected]
# Extract the Git tag version
- name: Extract tag version
id: vars
run: |
# Extract the tag name from GITHUB_REF, remove 'refs/tags/bq2bq/' prefix
TAG="${GITHUB_REF#refs/tags/bq2bq/}"
echo "Tag name: $TAG"
echo "::set-output name=tag::$TAG"
# Build and push the Docker image to Docker Hub
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
distribution: goreleaser
version: latest
args: -f .goreleaser.yml --clean
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}
context: ./bq2bq
platforms: linux/amd64 # Specify the target platforms
push: true
tags: |
docker.io/gotocompany/optimus-task-bq2bq-executor:latest
docker.io/gotocompany/optimus-task-bq2bq-executor:${{ steps.vars.outputs.tag }}
- name: Log out from Docker Hub
run: docker logout
15 changes: 1 addition & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ on:
workflow_dispatch:

jobs:
binary_bq2bq:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Golang
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: test binary bq2bq
run: make test
executor_bq2bq:
runs-on: ubuntu-latest
steps:
Expand All @@ -34,6 +21,6 @@ jobs:
python-version: '3.8'
- name: test executor
run: |
cd ./task/bq2bq/executor
cd ./bq2bq
chmod +x ./run_coverage.sh
./run_coverage.sh
77 changes: 0 additions & 77 deletions .goreleaser.yml

This file was deleted.

41 changes: 0 additions & 41 deletions Makefile

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion task/bq2bq/executor/Dockerfile → bq2bq/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.8-alpine

WORKDIR /opt/bumblebee

COPY task/bq2bq/executor .
COPY . .
RUN ["pip", "install", "-r", "requirements.txt"]

ENTRYPOINT [ "python3", "/opt/bumblebee/main.py"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 0 additions & 31 deletions entrypoint.sh

This file was deleted.

Empty file removed hook/.gitkeep
Empty file.
15 changes: 0 additions & 15 deletions scripts/update_yaml_version.sh

This file was deleted.

17 changes: 0 additions & 17 deletions task/bq2bq/Dockerfile

This file was deleted.

28 changes: 0 additions & 28 deletions task/bq2bq/README.md

This file was deleted.

57 changes: 0 additions & 57 deletions task/bq2bq/compiler.go

This file was deleted.

Loading

0 comments on commit 64a2bb8

Please sign in to comment.