-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use data platfrom workflow for build
- Loading branch information
1 parent
332cae6
commit 4e62e49
Showing
1 changed file
with
3 additions
and
20 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 |
---|---|---|
@@ -1,27 +1,10 @@ | ||
name: Build rock | ||
name: Build Charmed MongoDB rock | ||
|
||
on: | ||
workflow_call: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Setup LXD | ||
uses: canonical/setup-lxd@main | ||
- name: Install dependencies | ||
run: | | ||
sudo snap install yq | ||
sudo snap install rockcraft --classic --edge | ||
- name: Build rock | ||
run: | | ||
rockcraft pack | ||
- name: Upload locally built rock artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mongodb-rock | ||
path: charmed-mongodb_*_amd64.rock | ||
name: Build rock | ||
uses: canonical/data-platform-workflows/.github/workflows/build_rock.yaml@v16 |