Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Oct 24, 2024
1 parent 1f87b08 commit 8b62b9e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ concurrency:
cancel-in-progress: true

on:
push:
branches:
- 6-22.04
workflow_dispatch:
pull_request:

jobs:
build:
Expand Down Expand Up @@ -63,12 +60,13 @@ jobs:
# push major version to edge
major_tag_version="${version%%.*}-${{ env.RELEASE }}"
sudo skopeo \
--insecure-policy \
copy \
oci-archive:charmed-mongodb_${full_version}_amd64.rock \
docker-daemon:ghcr.io/canonical/charmed-mongodb:${major_tag_version}
docker push ghcr.io/canonical/charmed-mongodb:${major_tag_version}
docker-daemon:ghcr.io/miaaltieri/charmed-mongodb:${major_tag_version}
docker push ghcr.io/miaaltieri/charmed-mongodb:${major_tag_version}
### push full version to edge
tag_version="${version}-${base}_${{ env.RELEASE }}"
Expand All @@ -77,5 +75,5 @@ jobs:
--insecure-policy \
copy \
oci-archive:charmed-mongodb_${full_version}_amd64.rock \
docker-daemon:ghcr.io/canonical/charmed-mongodb:${tag_version}
docker push ghcr.io/canonical/charmed-mongodb:${tag_version}
docker-daemon:ghcr.io/miaaltieri/charmed-mongodb:${tag_version}
docker push ghcr.io/miaaltieri/charmed-mongodb:${tag_version}

0 comments on commit 8b62b9e

Please sign in to comment.