-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Registry Actions & Unable to encrypt connection: Unable to crea…
…te server credentials Issue (#12) - Enhance start-server script to create missing directories and files (`CUPS_SERVERROOT`, `STATE_DIR`, `STATE_FILE`) with appropriate permissions - Update README with OCI image instructions for GitHub Container Registry - Fix `registry-actions.yml`
- Loading branch information
1 parent
d9a815f
commit 932954c
Showing
3 changed files
with
59 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,25 +73,28 @@ jobs: | |
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and Push Docker Image (Edge & Latest Channel) | ||
if: github.event.inputs.workflow_choice == 'edge' || github.event.inputs.workflow_choice == 'both' || github.event_name == 'push' || github.event_name == 'workflow_run' | ||
env: | ||
USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
ORG: ${{ github.repository_owner }} | ||
run: | | ||
IMAGE="$(yq '.name' rockcraft.yaml)" | ||
VERSION="$(yq '.version' rockcraft.yaml)" | ||
ROCK="$(ls *.rock | tail -n 1)" | ||
sudo rockcraft.skopeo --insecure-policy copy oci-archive:"${ROCK}" docker-daemon:"${USERNAME}/${IMAGE}:${VERSION}-edge" | ||
ORG_NAME=$(echo "${ORG}" | tr '[:upper:]' '[:lower:]') | ||
sudo rockcraft.skopeo --insecure-policy copy oci-archive:"${ROCK}" docker-daemon:"${ORG_NAME}/${IMAGE}:${VERSION}-edge" | ||
# Push to Docker Hub | ||
# docker tag ${ORG_NAME}/${IMAGE}:${VERSION}-edge ${USERNAME}:${VERSION}-edge | ||
# docker push ${USERNAME}/${IMAGE}:${VERSION}-edge | ||
# docker tag ${USERNAME}/${IMAGE}:${VERSION}-edge ${USERNAME}/${IMAGE}:latest | ||
# docker push ${USERNAME}/${IMAGE}:latest | ||
# Push to GitHub Packages | ||
GITHUB_IMAGE="ghcr.io/${{ github.repository_owner }}/${IMAGE}" | ||
docker tag ${USERNAME}/${IMAGE}:${VERSION}-edge ${GITHUB_IMAGE}:${VERSION}-edge | ||
GITHUB_IMAGE="ghcr.io/${ORG_NAME}/${IMAGE}" | ||
docker tag ${ORG_NAME}/${IMAGE}:${VERSION}-edge ${GITHUB_IMAGE}:${VERSION}-edge | ||
docker push ${GITHUB_IMAGE}:${VERSION}-edge | ||
docker tag ${GITHUB_IMAGE}:${VERSION}-edge ${GITHUB_IMAGE}:latest | ||
docker push ${GITHUB_IMAGE}:latest | ||
|
@@ -100,14 +103,17 @@ jobs: | |
if: github.event.inputs.workflow_choice == 'stable' || github.event.inputs.workflow_choice == 'both' | ||
env: | ||
USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
ORG: ${{ github.repository_owner }} | ||
run: | | ||
IMAGE="$(yq '.name' rockcraft.yaml)" | ||
VERSION="$(yq '.version' rockcraft.yaml)" | ||
ROCK="$(ls *.rock | tail -n 1)" | ||
sudo rockcraft.skopeo --insecure-policy copy oci-archive:"${ROCK}" docker-daemon:"${USERNAME}/${IMAGE}:${VERSION}-stable" | ||
ORG_NAME=$(echo "${ORG}" | tr '[:upper:]' '[:lower:]') | ||
sudo rockcraft.skopeo --insecure-policy copy oci-archive:"${ROCK}" docker-daemon:"${ORG_NAME}/${IMAGE}:${VERSION}-stable" | ||
# Push to Docker Hub | ||
# docker tag ${ORG_NAME}/${IMAGE}:${VERSION}-stable ${USERNAME}:${VERSION}-stable | ||
# docker push ${USERNAME}/${IMAGE}:${VERSION}-stable | ||
# Push to GitHub Packages | ||
GITHUB_IMAGE="ghcr.io/${{ github.repository_owner }}/${IMAGE}" | ||
docker tag ${USERNAME}/${IMAGE}:${VERSION}-stable ${GITHUB_IMAGE}:${VERSION}-stable | ||
GITHUB_IMAGE="ghcr.io/${ORG_NAME}/${IMAGE}" | ||
docker tag ${ORG_NAME}/${IMAGE}:${VERSION}-stable ${GITHUB_IMAGE}:${VERSION}-stable | ||
docker push ${GITHUB_IMAGE}:${VERSION}-stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters