-
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.
feat(ci/cd): add gha to build push dev image [skip ci]
BIBLI-72
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Publish and deploy dev image | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
workflow_dispatch: | ||
jobs: | ||
build-push: | ||
environment: staging | ||
runs-on: | ||
group: self-hosted | ||
if: contains(github.event.head_commit.message, 'Back to development:') == false && contains(github.event.head_commit.message, 'Preparing release') == false | ||
steps: | ||
- name: Build push and notify | ||
uses: IMIO/gha/build-push-notify@v3.9.3 | ||
with: | ||
IMAGE_NAME: ${{ vars.IMAGE_NAME }} | ||
IMAGE_TAGS: | | ||
${{ vars.IMAGE_TAG_DEV }} | ||
REGISTRY_URL: ${{ secrets.HARBOR_URL }} | ||
REGISTRY_USERNAME: ${{ secrets.SMARTWEB_HARBOR_USERNAME }} | ||
REGISTRY_PASSWORD: ${{ secrets.SMARTWEB_HARBOR_PASSWORD }} | ||
MATTERMOST_WEBHOOK_URL: ${{ secrets.SMARTWEB_MATTERMOST_WEBHOOK_URL }} | ||
# deploy: | ||
# environment: | ||
# name: staging | ||
# runs-on: | ||
# group: self-hosted | ||
# needs: build-push | ||
# steps: | ||
# - name: Deploy to staging and notify | ||
# uses: IMIO/gha/rundeck-notify@v3.9.3 | ||
# with: | ||
# RUNDECK_URL: ${{ secrets.RUNDECK_URL }} | ||
# RUNDECK_TOKEN: ${{ secrets.SMARTWEB_RUNDECK_TOKEN }} | ||
# RUNDECK_JOB_ID: ${{ vars.RUNDECK_JOB_ID }} | ||
# RUNDECK_PARAMETERS: '-F "filter=name ${{ vars.NODE_NAME }}" -F "option.tag=${{ vars.IMAGE_TAG_DEV }}" -F "option.image_name=${{ vars.IMAGE_NAME }}"' | ||
# MATTERMOST_WEBHOOK_URL: ${{ secrets.SMARTWEB_MATTERMOST_WEBHOOK_URL }} |