Skip to content

Commit

Permalink
feat(workflows/publish-container): add deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
MM25Zamanian committed Apr 19, 2024
1 parent c7a7a33 commit ecdf4da
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
type=semver,enable=true,pattern={{major}}.{{minor}}
type=semver,enable=true,pattern={{version}}
type=ref,enable=true,event=branch
type=raw,enable={{is_default_branch}},value=latest
labels: |
org.opencontainers.image.title="gecut/${{matrix.name}}"
org.opencontainers.image.vendor="Gecut"
Expand All @@ -112,3 +113,23 @@ jobs:
# env:
# COSIGN_EXPERIMENTAL: 'true'
# run: echo "${{steps.meta.outputs.tags}}" | xargs -I {} cosign sign --yes {}@${{steps.build_and_push.outputs.digest}}

deploy:
name: Deploy Container On Darkbue
container: hamravesh/darkube-cli:v1.1
needs: build
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- name: hybrid-ui-demo-app
path: ./demo/
context: .

steps:
- name: darkube-cli deploy
run: darkube deploy --token ${{secrets.DEPLOY_TOKEN_HABIBIU_PWA}}
--app-id ${{secrets.APP_ID_HABIBIU_PWA}} --image-tag latest
--job-id ${GITHUB_RUN_ID}

0 comments on commit ecdf4da

Please sign in to comment.