Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
galkleinman committed Nov 17, 2024
1 parent 2c861ed commit a29836a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .cz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ tag_format = "v$version"
major_version_zero = true
update_changelog_on_bump = true
version = "0.0.0"
version_files = ["Cargo.toml"]
version_files = ["Cargo.toml", "Cargo.lock"]
version_provider = "cargo"
25 changes: 25 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
publish:
Expand Down Expand Up @@ -56,3 +57,27 @@ jobs:
labels: ${{ steps.docker-metadata.outputs.labels }}
platforms: |
linux/amd64, linux/arm64
deploy:
name: Deploy to Traceloop
runs-on: ubuntu-latest
needs: publish
steps:
- name: Install Octopus CLI
uses: OctopusDeploy/install-octopus-cli-action@v3
with:
version: '*'

- name: Create Octopus Release
env:
OCTOPUS_API_KEY: ${{ secrets.OCTOPUS_API_KEY }}
OCTOPUS_URL: ${{ secrets.OCTOPUS_URL }}
OCTOPUS_SPACE: ${{ secrets.OCTOPUS_SPACE }}
run: octopus release create --project web-app --version=${GITHUB_SHA::7} --packageVersion=${GITHUB_SHA::7} --no-prompt

- name: Deploy Octopus release
env:
OCTOPUS_API_KEY: ${{ secrets.OCTOPUS_API_KEY }}
OCTOPUS_URL: ${{ secrets.OCTOPUS_URL }}
OCTOPUS_SPACE: ${{ secrets.OCTOPUS_SPACE }}
run: octopus release deploy --project web-app --version=${GITHUB_SHA::7} --environment Staging --no-prompt

2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a29836a

Please sign in to comment.