Skip to content

Commit ebb4976

Browse files
committed
feat(ci): build-push workflow [skip ci]
1 parent db529f5 commit ebb4976

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/staging.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish and deploy staging image
2+
on:
3+
push:
4+
branches:
5+
- plone6
6+
tags:
7+
- '!**'
8+
env:
9+
IMAGE_NAME: 'docs/server/mutual'
10+
REGISTRY_URL: ${{ secrets.HARBOR_URL }}
11+
12+
jobs:
13+
build-push:
14+
runs-on: gha-runners-docs
15+
if: contains(github.event.head_commit.message, 'Back to development:') == false && contains(github.event.head_commit.message, 'Preparing release') == false
16+
steps:
17+
- name: Build push and notify
18+
uses: IMIO/gha/build-push-notify@v4
19+
with:
20+
IMAGE_NAME: ${{ vars.IMAGE_NAME }}
21+
IMAGE_TAGS: |
22+
${{ secrets.HARBOR_URL }}/${{ vars.IMAGE_NAME }}:staging
23+
${{ secrets.HARBOR_URL }}/${{ vars.IMAGE_NAME }}:staging-${{ github.run_number }}
24+
REGISTRY_URL: ${{ env.REGISTRY_URL}}
25+
REGISTRY_USERNAME: ${{ secrets.DOCS_HARBOR_USERNAME }}
26+
REGISTRY_PASSWORD: ${{ secrets.DOCS_HARBOR_PASSWORD }}
27+
MATTERMOST_WEBHOOK_URL: ${{ secrets.DOCS_MATTERMOST_WEBHOOK_URL }}
28+
# deploy:
29+
# runs-on: gha-runners-docs
30+
# needs: build-push
31+
# steps:
32+
# - name: Deploy to staging and notify
33+
# uses: IMIO/gha/[email protected]
34+
# with:
35+
# RUNDECK_URL: ${{ secrets.RUNDECK_URL }}
36+
# RUNDECK_TOKEN: ${{ secrets.DOCS_RUNDECK_TOKEN }}
37+
# RUNDECK_JOB_ID: ${{ secrets.RUNDECK_DEPLOY_STAGING_JOB_ID }}
38+
# RUNDECK_PARAMETERS: '-X POST'
39+
# MATTERMOST_WEBHOOK_URL: ${{ secrets.DOCS_MATTERMOST_WEBHOOK_URL }}

0 commit comments

Comments
 (0)