From 479476579243c27968d402de78d12f500710a0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 2 Jun 2023 12:22:44 +0100 Subject: [PATCH] add example gitea action --- .gitea/workflows/build.yaml | 19 +++++++++++++++++++ nixos/boxes/bolty/gitea-runner-token.sops | 6 +++--- nixos/boxes/bolty/gitea-runner.nix | 5 ++++- 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 00000000..1928195b --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,19 @@ +name: Gitea Actions Demo +run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 +on: [push] +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.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 ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.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 ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." + diff --git a/nixos/boxes/bolty/gitea-runner-token.sops b/nixos/boxes/bolty/gitea-runner-token.sops index 87b35a49..55e7d39e 100644 --- a/nixos/boxes/bolty/gitea-runner-token.sops +++ b/nixos/boxes/bolty/gitea-runner-token.sops @@ -1,5 +1,5 @@ { - "data": "ENC[AES256_GCM,data:fII/GXEk/AFDw58FICt4aw+H/RorzYnn1wxQbRzgrbJjpKvOvlTKpr9yIv6XE3im,iv:sueXQkVCo1L7eBk1cS2BM18YljS8wB6dA7fSstcDx3M=,tag:5mHr0k2QLR2PwF6+cfa2qA==,type:str]", + "data": "ENC[AES256_GCM,data:xSgFhBYMYncM7JXj4JREd6Yc+YjKloOV46w/iv7ixPVPFAYacBhuS+lnfW5PbRiE,iv:elw/ttIHxxSxPtJ4JU04vN8rpx5GzA32r3sNsRAs95Y=,tag:roUGPEK2lBQmWdIMQnObMw==,type:str]", "sops": { "kms": null, "gcp_kms": null, @@ -47,8 +47,8 @@ "enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBRTXVwRzVSd2NSSi90SVVu\na05jeitPNnE5TVJ1NXk5WGd6UnhObUwveHg0CjU0dTNxUUdtb253ZHdTMFkycWdI\nbjZsanUwSGdHcFZkckIrRDRTWldha3cKLS0tIE8wM09WMnhNeklnYytUWkVTc01E\neldXYlJXRm1OMWo0T1U3UlY4SFBndVEKs56uk3j02g1g7Ae16UGfwRQJghPvS8iG\nDcIrJp6tb5ToYKeAGcTDpDvaQeNWKBX6fSLVIiJbgDWIbbZp1HRYpw==\n-----END AGE ENCRYPTED FILE-----\n" } ], - "lastmodified": "2023-06-01T21:23:40Z", - "mac": "ENC[AES256_GCM,data:/79OP1J86viCOkDxvgEtmhuZT6OMvGqXSsnh3nzoNK6hXueupK8Hp7Z6TFytQoYc2ab42jGSQ+qpOGuO6k6CGRSiwBnVoIDohdZVtEj+SVkUpC2b7uLSWGlEVHVEfKTPM627blZW9/Lft9Y+kE1HnG+hDCXSeIulEI2TcWQJGzs=,iv:c/mz1mM250iZCO1c53Fs8wsoKYn2SY6Tg/5P/Hb1lK0=,tag:q5eku5En2jaYwBmiz/xx3g==,type:str]", + "lastmodified": "2023-06-02T11:21:30Z", + "mac": "ENC[AES256_GCM,data:c0eiWJxcztHhtgK2FQBGaSQOU7LXY1TztLg5kUxOwA0kGygtECleJ1/2C/IhF/Jt7APCLvZAfSN07ejSU3C3j8YphIfrSm21IXd2Vh3k12E5giqEe7fEDaMuw/QnPC5KavIpyesqLo+pOlgFaJ+Xol3cPorbpPIz/BoRxwcqfqk=,iv:SRs3pUqdcUNaLJVJV2rfVpW9DqS70MMuKE2fKlMVJ/4=,tag:iJE3/OJkBp5yRoWXzDvYkA==,type:str]", "pgp": null, "unencrypted_suffix": "_unencrypted", "version": "3.7.3" diff --git a/nixos/boxes/bolty/gitea-runner.nix b/nixos/boxes/bolty/gitea-runner.nix index 3c45aa62..a8dcbf41 100644 --- a/nixos/boxes/bolty/gitea-runner.nix +++ b/nixos/boxes/bolty/gitea-runner.nix @@ -12,6 +12,9 @@ url = "https://git.cyplo.dev"; tokenFile = config.sops.secrets."gitea-runner-token".path; name = "bolty1"; - labels = [ "nix:docker://nixpkgs/nix-flakes:latest" ]; + labels = [ + "nix:docker://nixpkgs/nix-flakes:latest" + "ubuntu-latest:docker://ubuntu:latest" + ]; }; }