Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
syepes committed Mar 6, 2022
1 parent b31ffe3 commit f3478c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,3 @@ jobs:

- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

- name: repo info
id: vars
run: |
echo ::set-output name=repo_tag::${GITHUB_REF#refs/*/}
- name: build (master)
if: "github.ref == 'refs/heads/master'"
run: make build
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ jobs:
env:
VERSION: ${{steps.vars.outputs.repo_tag}}

- name: build and push (master)
if: "github.ref == 'refs/heads/master'"
- name: build and push (latest)
if: startsWith( github.ref, 'refs/tags/')
run: make build-push
env:
VERSION: latest

goreleaser:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f3478c7

Please sign in to comment.