-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from pluralsh/cd-setup
use cd to deploy new proxy versions
- Loading branch information
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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} |