Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapcraft-rocks now ships official container images #53

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,13 @@ cache33restore_task:
# * https://forum.snapcraft.io/t/creating-docker-images-for-snapcraft/11739

docker_builder:
matrix:
- env:
CORE: core18
UBUNTU: 18.04
- env:
CORE: core20
UBUNTU: 20.04
env:
TAG: yakshaveinc/snapcraft
CORE: core24
DOCKER_USERNAME: ENCRYPTED[89bc5b18538c2260d2840aa63a69b21ea4f247085793e6ddfc2270629b4f615b684dfca53a5f5debcabbe1b4f6d8b965]
DOCKER_PASSWORD: ENCRYPTED[5d5ec522913fd2c5b6dda34b044cdb55f01aae995150a98eba8a040a83126eb2e4b3e76209316aa3fe0af7ef8e4388ef]
clone_script: git clone --depth=100 https://github.com/snapcore/snapcraft
build_script: |
# build bionic (18.04) image instead of xenial (16.04) for more
# building options for core18 based snaps
cd snapcraft/docker
docker build . -t $TAG:$CORE --build-arg RISK=stable --build-arg UBUNTU=$UBUNTU
docker build . -f Dockerfile.snapcraft -t $TAG:$CORE
test_script: docker run $TAG:$CORE snapcraft --version
deploy_script: |
# deploy is run only against master branch, because variables are not decrypted for read-only PR senders (for security)
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile.snapcraft
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ghcr.io/canonical/snapcraft:8_core24

ENV SNAPCRAFT_BUILD_ENVIRONMENT=host

WORKDIR /workdir

ENTRYPOINT ["/bin/run-snapcraft.sh"]
Loading