Skip to content

Commit

Permalink
Merge pull request #67 from pluralsh/cd-setup
Browse files Browse the repository at this point in the history
use cd to deploy new proxy versions
  • Loading branch information
michaeljguarino authored Nov 17, 2023
2 parents d73bf1d + b09fefe commit 5e933f6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
ghcr.io/pluralsh/marketing-proxy
# generate Docker tags based on the following events/attributes
tags: |
type=sha
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{raw}},value=${{ steps.latest_tag.outputs.new_patch }}
Expand All @@ -55,4 +56,19 @@ jobs:
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
update-service:
needs: [docker-build]
runs-on: plrl-github-actions-runner
env:
PLURAL_CONSOLE_TOKEN: ${{ secrets.PLURAL_CONSOLE_TOKEN }}
PLURAL_CONSOLE_URL: ${{ secrets.PLURAL_CONSOLE_URL }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: installing plural
uses: pluralsh/[email protected]
- name: Using short sha
run: echo ${GITHUB_SHA::7}
- name: Update service
run: plural cd services update @mgmt/marketing --conf tag=sha-${GITHUB_SHA::7}

0 comments on commit 5e933f6

Please sign in to comment.