first attempt to push an image
This commit is contained in:
parent
fa81dbdcf6
commit
41a4fde9f2
3 changed files with 42 additions and 1 deletions
34
.forgejo/workflows/runner-image.yml
Normal file
34
.forgejo/workflows/runner-image.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Test action
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
registry: git.amarth.cloud
|
||||
owner: chris
|
||||
image: default
|
||||
tag: latest
|
||||
|
||||
jobs:
|
||||
hello:
|
||||
name: Print hello world
|
||||
runs-on: default
|
||||
steps:
|
||||
- name: Pull dependencies
|
||||
run: >-
|
||||
git clone https://${{ registry }}/${{ owner }}/sneeuwvlok.git
|
||||
&& cd sneeuwvlok
|
||||
|
||||
- name: Log into registry
|
||||
run: docker login ${{ registry }}
|
||||
|
||||
- name: Build image
|
||||
run: >-
|
||||
docker build
|
||||
-t ${{registry}}/${{ owner }}/${{ image }}:${{ tag }} ./modules/nixos/services/development/forgejo/Dockerfile.default
|
||||
|
||||
- name: Push image
|
||||
run: docker push ${{registry}}/${{ owner }}/${{ image }}:${{ tag }}
|
|
@ -0,0 +1,5 @@
|
|||
FROM nixos/nix:latest
|
||||
|
||||
RUN nix-env -iA nixpkgs.nodejs_24
|
||||
|
||||
CMD ["/bin/bash"]
|
|
@ -91,6 +91,7 @@ in
|
|||
|
||||
actions = {
|
||||
ENABLED = true;
|
||||
# DEFAULT_ACTIONS_URL = "https://data.forgejo.org";
|
||||
};
|
||||
|
||||
other = {
|
||||
|
@ -136,7 +137,8 @@ in
|
|||
# tokenFile = config.age.secrets.forgejo-runner-token.path;
|
||||
token = "ZBetud1F0IQ9VjVFpZ9bu0FXgx9zcsy1x25yvjhw";
|
||||
labels = [
|
||||
"default:docker://node:24-bookworm"
|
||||
"default:docker://nixos/nix:latest"
|
||||
"ubuntu:docker://ubuntu:24-bookworm"
|
||||
];
|
||||
settings = {
|
||||
log.level = "info";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue