Skip to content

Commit

Permalink
chore: create dev workflow to test feature branch (#208)
Browse files Browse the repository at this point in the history
* chore: create dev workflow to test feature branch

* refactor: update spacing

* chore: tag latest image with :dev on build dev workflow
  • Loading branch information
StewartJingga authored Sep 12, 2021
1 parent 777cf20 commit 7159c72
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Dev

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
distribution: goreleaser
version: latest
args: --snapshot --rm-dist
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Tag dev image
run: docker tag docker.io/odpf/meteor:latest docker.io/odpf/meteor:dev
- name: Push Images
run: docker push docker.io/odpf/meteor:dev

0 comments on commit 7159c72

Please sign in to comment.