Skip to content

Commit

Permalink
Fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Nov 27, 2023
1 parent d603c5f commit 1a35fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ jobs:
base=$(yq '(.base|split("@"))[1]' rockcraft.yaml)
tag=${version}-${base}_edge
sudo skopeo --insecure-policy copy \
oci-archive:charmed-postgresql_${tag}_amd64.rock \
oci-archive:charmed-postgresql_${version}_amd64.rock \
docker-daemon:ghcr.io/canonical/charmed-postgresql:${tag}
docker push ghcr.io/canonical/charmed-postgresql:${tag}
3 changes: 1 addition & 2 deletions .github/workflows/sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ jobs:
run: |
version=$(yq '(.version|split("-"))[0]' rockcraft.yaml)
base=$(yq '(.base|split(":"))[1]' rockcraft.yaml)
echo "tag=${version}-${base}_edge" >> "$GITHUB_ENV"
echo "version=${version}" >> "$GITHUB_ENV"
- uses: actions/download-artifact@v3
with:
name: postgresql-rock
- name: Create SBOM
run: syft charmed-postgresql_${{env.version}}_amd64.rock -o spdx-json=charmed-postgresql_${{env.tag}}_amd64.rock.spdx.json
run: syft charmed-postgresql_${{env.version}}_amd64.rock -o spdx-json=charmed-postgresql_${{env.version}}_amd64.rock.spdx.json
- name: Upload SBOM
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 1a35fdf

Please sign in to comment.