Skip to content

Commit f5d6858

Browse files
authored
ci: Install oras when enforcing publishing from tags (#5965)
## Description Align publish from tags workflow with publish github action ## Pipeline Reference <!-- Insert your Pipeline Status Badge below --> | Pipeline | | -------- | ## Type of Change <!-- Use the checkboxes [x] on the options that are relevant. --> - Azure Verified Module updates: - [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation - [x] Update to CI Environment or utilities (Non-module affecting changes) ## Checklist - [ ] I'm sure there are no other open Pull Requests for the same update/change - [ ] I have run `Set-AVMModule` locally to generate the supporting module files. - [ ] My corresponding pipelines / checks run clean and green without any errors or warnings - [ ] I have updated the module's CHANGELOG.md file with an entry for the next version <!-- Please keep up to date with the contribution guide at https://aka.ms/avm/contribute/bicep -->
1 parent bb1a1b3 commit f5d6858

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/platform.publish-tag.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ jobs:
4242
sudo mv ./bicep /usr/local/bin/bicep
4343
bicep --version
4444
45+
# Adding a step to install Oras as it's only needed for publishing/validation
46+
- name: Install Oras
47+
shell: bash
48+
run: |
49+
VERSION="1.2.2"
50+
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
51+
mkdir -p oras-install/
52+
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
53+
sudo mv oras-install/oras /usr/local/bin/
54+
rm -rf oras_${VERSION}_*.tar.gz oras-install/
55+
4556
- name: "Publish tagged module to public bicep registry"
4657
id: publish_tag
4758
uses: azure/powershell@v2

0 commit comments

Comments
 (0)