Skip to content

Commit

Permalink
feat: update github actions steps
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfrasco committed Mar 7, 2023
1 parent 673ea2b commit 1c5087d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/admin-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
type=semver,pattern={{major}}
- name: Login to Docker Hub
uses: docker/login-action@v2
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -60,8 +60,15 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
- name: Push to Staging
uses: fjogeleit/http-request-action@v1
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
with:
method: "POST"
url: ${{ secrets.PORTAINER_WEBHOOK }}
preventFailureOnNoResponse: true
- name: Push to Production
uses: fjogeleit/http-request-action@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
method: "POST"
url: ${{ secrets.PORTAINER_WEBHOOK_PRODUCTION }}
preventFailureOnNoResponse: true
11 changes: 9 additions & 2 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
type=semver,pattern={{major}}
- name: Login to Docker Hub
uses: docker/login-action@v2
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -67,8 +67,15 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
- name: Push to Staging
uses: fjogeleit/http-request-action@v1
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
with:
method: "POST"
url: ${{ secrets.PORTAINER_WEBHOOK }}
preventFailureOnNoResponse: true
- name: Push to Production
uses: fjogeleit/http-request-action@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
method: "POST"
url: ${{ secrets.PORTAINER_WEBHOOK_PRODUCTION }}
preventFailureOnNoResponse: true

0 comments on commit 1c5087d

Please sign in to comment.