Skip to content

Commit

Permalink
feat(ci/cd): add gha to build push dev image [skip ci]
Browse files Browse the repository at this point in the history
BIBLI-72
  • Loading branch information
remdub committed Sep 16, 2024
1 parent 2cbac2c commit 0f53c5c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dev.yml
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 }}

0 comments on commit 0f53c5c

Please sign in to comment.