diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml new file mode 100644 index 0000000..9b94c38 --- /dev/null +++ b/.github/workflows/build-image.yaml @@ -0,0 +1,31 @@ +name: Image (Build) + +on: [push] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: | + rornic/starling-exporter + tags: | + type=sha + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build + uses: docker/build-push-action@v5 + with: + push: false + context: . + tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml new file mode 100644 index 0000000..2fa72c0 --- /dev/null +++ b/.github/workflows/go.yaml @@ -0,0 +1,23 @@ +name: Go + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.22.x' + + - name: Install dependencies + run: go get . + + - name: Build + run: go build -v ./... + + - name: Test + run: go test