Skip to content

Commit

Permalink
Move rock and snap-related files into the packaging directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rudra-iitm committed Jan 13, 2025
1 parent ab04369 commit 0aae4cc
Show file tree
Hide file tree
Showing 23 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
version-schema: 'v(\d+\.\d+\.\d+)'
yaml-path: 'packages/snapcraft.yaml'
yaml-path: 'packaging/snapcraft.yaml'

- name: Run desktop-snaps action (Rockcraft)
if: ${{ github.event_name == 'schedule' || github.event.inputs.workflow_choice == 'rockcraft' || github.event.inputs.workflow_choice == 'both' }}
Expand All @@ -38,5 +38,5 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
rock-version-schema: 'v(\d+\.\d+\.\d+)'
yaml-path: 'packages/rockcraft.yaml'
readme-path: packages/README.md
yaml-path: 'packaging/rockcraft.yaml'
readme-path: packaging/README.md
4 changes: 2 additions & 2 deletions .github/workflows/packages-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: canonical/craft-actions/rockcraft-pack@main
id: rockcraft
with:
path: packages
path: packaging

- name: Upload Rock Artifact
uses: actions/upload-artifact@v4
Expand All @@ -40,7 +40,7 @@ jobs:
uses: snapcore/action-build@v1
id: snapcraft
with:
path: packages
path: packaging

test:
needs: build-rock
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/registry-actions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pack and Publish OCI Image to Docker Registry and GitHub Packages
name: Pack and Publish OCI Image to Docker Registry and GitHub packaging

on:
push:
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
uses: canonical/craft-actions/rockcraft-pack@main
id: rockcraft
with:
path: packages
path: packaging

- name: Upload Rock Artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -84,8 +84,8 @@ jobs:
USERNAME: ${{ secrets.DOCKER_USERNAME }}
ORG: ${{ github.repository_owner }}
run: |
IMAGE="$(yq '.name' packages/rockcraft.yaml)"
VERSION="$(yq '.version' packages/rockcraft.yaml)"
IMAGE="$(yq '.name' packaging/rockcraft.yaml)"
VERSION="$(yq '.version' packaging/rockcraft.yaml)"
ROCK="$(ls *.rock | tail -n 1)"
ORG_NAME=$(echo "${ORG}" | tr '[:upper:]' '[:lower:]')
sudo rockcraft.skopeo --insecure-policy copy oci-archive:"${ROCK}" docker-daemon:"${ORG_NAME}/${IMAGE}:${VERSION}-edge"
Expand All @@ -107,8 +107,8 @@ jobs:
USERNAME: ${{ secrets.DOCKER_USERNAME }}
ORG: ${{ github.repository_owner }}
run: |
IMAGE="$(yq '.name' packages/rockcraft.yaml)"
VERSION="$(yq '.version' packages/rockcraft.yaml)"
IMAGE="$(yq '.name' packaging/rockcraft.yaml)"
VERSION="$(yq '.version' packaging/rockcraft.yaml)"
ROCK="$(ls *.rock | tail -n 1)"
ORG_NAME=$(echo "${ORG}" | tr '[:upper:]' '[:lower:]')
sudo rockcraft.skopeo --insecure-policy copy oci-archive:"${ROCK}" docker-daemon:"${ORG_NAME}/${IMAGE}:${VERSION}-stable"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0aae4cc

Please sign in to comment.