From 793c0b1913f0093a8a5be3856d1a968a0e63ebc6 Mon Sep 17 00:00:00 2001 From: Manuel Ganter Date: Mon, 10 Nov 2025 16:51:27 +0100 Subject: [PATCH] updated pipelines --- .github/workflows/build.yml | 52 ---------------------------------- .github/workflows/go-tests.yml | 7 +++-- .gitignore | 1 + 3 files changed, 6 insertions(+), 54 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 728b67d..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: build - -on: - push: - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-22.04 - - steps: - - - name: Repository meta - id: repository - run: | - registry=${{ github.server_url }} - registry=${registry##http*://} - echo "registry=${registry}" >> "$GITHUB_OUTPUT" - echo "registry=${registry}" - repository="$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" - echo "repository=${repository}" >> "$GITHUB_OUTPUT" - echo "repository=${repository}" - - - name: Docker meta - uses: docker/metadata-action@v5 - id: docker - with: - images: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }} - tags: | - type=sha,prefix= - type=ref,event=tag - - - name: Login to registry - uses: docker/login-action@v3 - with: - registry: ${{ steps.repository.outputs.registry }} - username: "${{ secrets.PACKAGES_USER }}" - password: "${{ secrets.PACKAGES_TOKEN }}" - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - buildkitd-flags: '--allow-insecure-entitlement network.host' - driver-opts: network=host - - - name: Build and push - uses: docker/build-push-action@v6 - with: - push: true - allow: network.host - network: host - tags: ${{ steps.docker.outputs.tags }} diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index a98eb49..a99e753 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -23,5 +23,8 @@ jobs: - run: go version - - name: Run GARM Go Tests - run: make test \ No newline at end of file + - name: run test + run: make test + + - name: run build + run: make build diff --git a/.gitignore b/.gitignore index 6d57b45..aa5ec65 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ devbox.json devbox.lock kubeconfig.yaml +main