Configure Dependabot to only provide security updates for Go #706
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: set up go 1.24 | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24" | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v4 | |
| - name: build and test | |
| run: | | |
| go test -v -timeout=100s -covermode=count -coverprofile=$GITHUB_WORKSPACE/profile.cov_tmp ./... | |
| cat $GITHUB_WORKSPACE/profile.cov_tmp | grep -v "mocks" | grep -v "_mock" > $GITHUB_WORKSPACE/profile.cov | |
| working-directory: app | |
| env: | |
| TZ: "America/Chicago" | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| version: v2.0.2 | |
| - name: install goveralls | |
| run: go install github.com/mattn/goveralls@latest | |
| - name: submit coverage | |
| run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov || echo "Coverage submission failed, but continuing build" | |
| env: | |
| COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| continue-on-error: true | |
| - name: build and push master image | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| run: | | |
| docker build -t radiot/super-bot:master . | |
| docker login --username ${{ secrets.DOCKERHUB_USER }} --password ${{ secrets.DOCKERHUB_PASSWD }} | |
| docker push radiot/super-bot:master | |
| - name: build and push tagged image | |
| if: github.event_name == 'push' && github.event.ref_type == 'tag' | |
| run: | | |
| GIT_TAG="${GITHUB_REF#refs/tags/}" | |
| docker build -t radiot/super-bot:${GIT_TAG} . | |
| docker login --username ${{ secrets.DOCKERHUB_USER }} --password ${{ secrets.DOCKERHUB_PASSWD }} | |
| docker push radiot/super-bot:${GIT_TAG} | |
| docker tag radiot/super-bot:${GIT_TAG} radiot/super-bot:latest | |
| docker push radiot/super-bot:latest | |
| - name: remote deployment from master | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| env: | |
| UPDATER_KEY: ${{ secrets.UPDATER_KEY }} | |
| run: curl https://radio-t.com/updater/update/super-bot/${UPDATER_KEY} |