Compare commits
2 Commits
75361f9a8a
...
5764deb836
Author | SHA1 | Date | |
---|---|---|---|
5764deb836 | |||
d1b46ce129 |
21
.gitea/workflows/main.yaml
Normal file
21
.gitea/workflows/main.yaml
Normal 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
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
|
*~
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
FROM scratch
|
FROM scratch as builder
|
||||||
ADD guix-tarball-pack.tar.gz /guix-builder
|
ADD guix-tarball-pack.tar.gz /guix-builder
|
||||||
|
ADD links.tar.gz /
|
||||||
ENV PATH=/guix-builder/bin
|
|
||||||
|
|
||||||
VOLUME /var/guix/daemon-socket/socket /gnu/store /etc/ssl
|
VOLUME /var/guix/daemon-socket/socket /gnu/store /etc/ssl
|
||||||
ENTRYPOINT ["/guix-builder/bin/bash"]
|
ENTRYPOINT ["/guix-builder/bin/bash"]
|
||||||
|
10
Makefile
10
Makefile
@ -4,14 +4,20 @@ GUIX_MANIFEST := manifest.scm
|
|||||||
GUIX_MANIFEST_DEV := manifest-dev.scm
|
GUIX_MANIFEST_DEV := manifest-dev.scm
|
||||||
|
|
||||||
TARBALL ?= guix-tarball-pack.tar.gz
|
TARBALL ?= guix-tarball-pack.tar.gz
|
||||||
|
LINKS_TARBALL ?= links.tar.gz
|
||||||
IMAGE_TAG ?= guix-builder
|
IMAGE_TAG ?= guix-builder
|
||||||
|
|
||||||
|
$(LINKS_TARBALL):
|
||||||
|
ln -s /guix-builder/bin bin
|
||||||
|
tar -czvf links.tar.gz bin
|
||||||
|
rm bin
|
||||||
|
|
||||||
$(TARBALL):
|
$(TARBALL):
|
||||||
@cp $$(guix pack -R -S /bin=bin -S /etc/ssl=etc/ssl -m $(GUIX_MANIFEST)) $@
|
@cp $$(guix pack -R -S /bin=bin -S /etc/ssl=etc/ssl -m $(GUIX_MANIFEST)) $@
|
||||||
@chmod +w $@
|
@chmod +w $@
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: $(TARBALL)
|
build: $(TARBALL) $(LINKS_TARBALL)
|
||||||
@docker build -t $(IMAGE_TAG) .
|
@docker build -t $(IMAGE_TAG) .
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
@ -30,4 +36,4 @@ shell:
|
|||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
clean:
|
clean:
|
||||||
rm $(TARBALL)
|
rm -r $(TARBALL) $(LINKS_TARBALL)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
(specifications->manifest
|
(specifications->manifest
|
||||||
(list "make"
|
(list "make"
|
||||||
|
"tar"
|
||||||
"docker-cli"))
|
"docker-cli"))
|
||||||
|
Loading…
Reference in New Issue
Block a user