Compare commits

...

2 Commits

5 changed files with 33 additions and 5 deletions

View File

@ -0,0 +1,21 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: guix
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Guix version
run: guix --version
- name: Check out repository code
uses: https://github.com/actions/checkout@v3
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

1
.gitignore vendored
View File

@ -1 +1,2 @@
*~
*.tar.gz

View File

@ -1,7 +1,6 @@
FROM scratch
FROM scratch as builder
ADD guix-tarball-pack.tar.gz /guix-builder
ENV PATH=/guix-builder/bin
ADD links.tar.gz /
VOLUME /var/guix/daemon-socket/socket /gnu/store /etc/ssl
ENTRYPOINT ["/guix-builder/bin/bash"]

View File

@ -4,14 +4,20 @@ GUIX_MANIFEST := manifest.scm
GUIX_MANIFEST_DEV := manifest-dev.scm
TARBALL ?= guix-tarball-pack.tar.gz
LINKS_TARBALL ?= links.tar.gz
IMAGE_TAG ?= guix-builder
$(LINKS_TARBALL):
ln -s /guix-builder/bin bin
tar -czvf links.tar.gz bin
rm bin
$(TARBALL):
@cp $$(guix pack -R -S /bin=bin -S /etc/ssl=etc/ssl -m $(GUIX_MANIFEST)) $@
@chmod +w $@
.PHONY: build
build: $(TARBALL)
build: $(TARBALL) $(LINKS_TARBALL)
@docker build -t $(IMAGE_TAG) .
.PHONY: run
@ -30,4 +36,4 @@ shell:
.PHONY:
clean:
rm $(TARBALL)
rm -r $(TARBALL) $(LINKS_TARBALL)

View File

@ -1,3 +1,4 @@
(specifications->manifest
(list "make"
"tar"
"docker-cli"))