Skip to content

Commit

Permalink
Fixed Skopeo/Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
UtkarshBhatthere committed Nov 21, 2024
1 parent b474662 commit 3d82866
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish_edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- name: Install deps and clean legacy rules.
run: |
sudo snap install lxd
sudo apt install skopeo
sudo snap install rockcraft --classic --edge
sudo lxd init --auto
for ipt in iptables iptables-legacy ip6tables ip6tables-legacy; do sudo $ipt --flush; sudo $ipt --flush -t nat; sudo $ipt --delete-chain; sudo $ipt --delete-chain -t nat; sudo $ipt -P FORWARD ACCEPT; sudo $ipt -P INPUT ACCEPT; sudo $ipt -P OUTPUT ACCEPT; done
Expand Down Expand Up @@ -64,11 +65,12 @@ jobs:
# iterate through the tags
for tag in $TAGS; do
echo "$tag"
skopeo --insecure-policy copy oci-archive:${{ steps.rockcraft.outputs.rock }} docker-daemon:$tag
sudo docker image ls -a
sudo skopeo --insecure-policy copy oci-archive:${{ steps.rockcraft.outputs.rock }} docker-daemon:$tag
done
docker image ls -a
sudo docker image ls -a
sleep 10
docker push ghcr.io/canonical/ceph --all-tags
sudo docker push ghcr.io/canonical/ceph --all-tags
env:
TAGS: ${{ steps.meta.outputs.tags }}

0 comments on commit 3d82866

Please sign in to comment.