Skip to content

Commit

Permalink
use cd to deploy new proxy versions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Nov 17, 2023
1 parent d73bf1d commit 952100e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: docker-build

on:
push:
branches: [ main ]
branches: [ main, cd-setup ]

jobs:
docker-build:
Expand Down 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,17 @@ 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: Update service
run: plural cd services update @mgmt/marketing --conf tag=sha-$(git rev-parse --short HEAD)

0 comments on commit 952100e

Please sign in to comment.