Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Revert 'used docker/build-push-action for creating images instead of …
Browse files Browse the repository at this point in the history
…Makefile'.
  • Loading branch information
lesovsky committed Feb 23, 2021
1 parent 0f26c25 commit 32799e3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,24 @@ jobs:
- name: Run test
run: make test

push_to_registry:
name: Build and push Docker image to Docker Hub
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Check out the repo
- name: Checkout code
uses: actions/checkout@v2
- name: Build and push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: weaponry/pgscv
tag_with_ref: true
fetch-depth: 0
- name: Build image
run: make docker-build
- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Push image to Docker Hub
run: make docker-push

goreleaser:
runs-on: ubuntu-latest
needs: [ test, push_to_registry ]
needs: build
steps:
- uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 32799e3

Please sign in to comment.