diff --git a/.gitea/workflows/base.yml b/.forgejo/workflows/base.yml similarity index 100% rename from .gitea/workflows/base.yml rename to .forgejo/workflows/base.yml diff --git a/.gitea/workflows/csharp.yml b/.forgejo/workflows/csharp.yml similarity index 100% rename from .gitea/workflows/csharp.yml rename to .forgejo/workflows/csharp.yml diff --git a/.forgejo/workflows/go.yml b/.forgejo/workflows/go.yml new file mode 100644 index 0000000..5d4a574 --- /dev/null +++ b/.forgejo/workflows/go.yml @@ -0,0 +1,32 @@ +name: Build Runner Go + +on: + push: + branches: + - 'master' + +jobs: + build_go: + runs-on: 'priviliged' + steps: + - name: Install Docker + run: | + rm $(which docker) && curl -fsSL https://get.docker.com | sh + - name: Set up QEMU + uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3' + - name: Setup Buildx + uses: 'https://git.euph.dev/actions/docker-setup-buildx@v3' + - name: Login to Registry + uses: 'https://git.euph.dev/actions/docker-login@v3' + with: + registry: git.euph.dev + username: ${{ secrets.DEPLOY_USER }} + password: ${{ secrets.DEPLOY_SECRET }} + - name: Build and push Go image + uses: 'https://git.euph.dev/actions/docker-build-push@v5' + with: + context: "{{defaultContext}}:images/actions/go" + push: true + tags: | + git.euph.dev/actions/runner-go:latest + git.euph.dev/actions/runner-go:${{ gitea.run_number }} diff --git a/.gitea/workflows/godot.yml b/.forgejo/workflows/godot.yml similarity index 100% rename from .gitea/workflows/godot.yml rename to .forgejo/workflows/godot.yml diff --git a/.gitea/workflows/java.yml b/.forgejo/workflows/java.yml similarity index 100% rename from .gitea/workflows/java.yml rename to .forgejo/workflows/java.yml diff --git a/.gitea/workflows/js.yml b/.forgejo/workflows/js.yml similarity index 100% rename from .gitea/workflows/js.yml rename to .forgejo/workflows/js.yml diff --git a/.gitea/workflows/lua.yml b/.forgejo/workflows/lua.yml similarity index 100% rename from .gitea/workflows/lua.yml rename to .forgejo/workflows/lua.yml diff --git a/.gitea/workflows/php.yml b/.forgejo/workflows/php.yml similarity index 100% rename from .gitea/workflows/php.yml rename to .forgejo/workflows/php.yml diff --git a/images/actions/go/Dockerfile b/images/actions/go/Dockerfile new file mode 100644 index 0000000..d160197 --- /dev/null +++ b/images/actions/go/Dockerfile @@ -0,0 +1,4 @@ +FROM git.euph.dev/actions/runner-basic:latest + +RUN sudo apk add --no-cache "go" +RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh