fix: bad_credentials after 150s of inactivity #154
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| GOTOOLCHAIN: local | |
| CI_REGISTRY_IMAGE: "${{ secrets.CI_REGISTRY }}/bridge/line" | |
| BEEPER_BRIDGE_TYPE: line | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go-version: ["1.25"] | |
| name: Lint with ${{ matrix.go-version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: true | |
| - name: Install libolm | |
| run: sudo apt-get install libolm-dev | |
| - name: Install dependencies | |
| run: | | |
| go install golang.org/x/tools/cmd/goimports@latest | |
| go install honnef.co/go/tools/cmd/staticcheck@latest | |
| export PATH="$HOME/go/bin:$PATH" | |
| - name: Run pre-commit | |
| uses: pre-commit/action@v3.0.1 | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go-version: ["1.25"] | |
| name: Build ${{ matrix.go-version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: true | |
| - name: Install libolm | |
| run: sudo apt-get install libolm-dev | |
| - name: Check formatting | |
| run: | | |
| if [ -n "$(gofmt -l .)" ]; then | |
| echo "Go code is not formatted. Please run 'go fmt ./...'" | |
| exit 1 | |
| fi | |
| - name: Build | |
| run: go build -v ./... | |
| build-docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.CI_REGISTRY }} | |
| username: ${{ secrets.CI_REGISTRY_USER }} | |
| password: ${{ secrets.CI_REGISTRY_PASSWORD }} | |
| - name: Docker Build | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| cache-from: ${{ env.CI_REGISTRY_IMAGE }}:latest | |
| pull: true | |
| file: Dockerfile | |
| tags: | | |
| ${{ env.CI_REGISTRY_IMAGE }}:${{ github.sha }} | |
| ${{ env.CI_REGISTRY_IMAGE }}:${{ github.sha }}-amd64 | |
| push: true | |
| deploy-docker: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - lint | |
| - build | |
| - build-docker | |
| if: github.ref == 'refs/heads/main' | |
| steps: | |
| - name: Login to Beeper Docker registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ secrets.CI_REGISTRY }} | |
| username: ${{ secrets.CI_REGISTRY_USER }} | |
| password: ${{ secrets.CI_REGISTRY_PASSWORD }} | |
| - uses: beeper/docker-retag-push-latest@main | |
| with: | |
| image: ${{ env.CI_REGISTRY_IMAGE }} | |
| - name: Run bridge CD tool | |
| uses: beeper/bridge-cd-tool@main | |
| env: | |
| CI_REGISTRY: "${{ secrets.CI_REGISTRY }}" | |
| BEEPER_DEV_ADMIN_API_URL: "${{ secrets.BEEPER_DEV_ADMIN_API_URL }}" | |
| BEEPER_STAGING_ADMIN_API_URL: "${{ secrets.BEEPER_STAGING_ADMIN_API_URL }}" | |
| BEEPER_PROD_ADMIN_API_URL: "${{ secrets.BEEPER_PROD_ADMIN_API_URL }}" | |
| BEEPER_DEV_ADMIN_NIGHTLY_PASS: "${{ secrets.BEEPER_DEV_ADMIN_NIGHTLY_PASS }}" | |
| BEEPER_STAGING_ADMIN_NIGHTLY_PASS: "${{ secrets.BEEPER_STAGING_ADMIN_NIGHTLY_PASS }}" | |
| BEEPER_PROD_ADMIN_NIGHTLY_PASS: "${{ secrets.BEEPER_PROD_ADMIN_NIGHTLY_PASS }}" |