Skip to content

Commit

Permalink
Merge pull request #85 from gecut/refactor/components
Browse files Browse the repository at this point in the history
feat(workflows/publish-container): add `deploy` job
  • Loading branch information
MM25Zamanian authored Apr 19, 2024
2 parents 4d95d81 + ecdf4da commit b22e2b8
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 b22e2b8

Please sign in to comment.