Skip to content

Commit

Permalink
ci: enable prod
Browse files Browse the repository at this point in the history
  • Loading branch information
csdev committed Apr 27, 2023
1 parent a6f6b7c commit 39e2eda
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: docker

on:
pull_request:
push:
branches:
- 'master'
Expand Down Expand Up @@ -60,15 +61,13 @@ jobs:
/bin/sh -c 'go test -coverprofile=c.out "./..." && go tool cover -func=c.out'
-
name: Login to Docker Hub
if: false # TODO
# if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push prod image
if: false # TODO
uses: docker/build-push-action@v4
with:
context: .
Expand All @@ -82,8 +81,7 @@ jobs:

release:
needs: docker
if: false # TODO
# if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v')
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 39e2eda

Please sign in to comment.