Skip to content

update go and dependencies #8

update go and dependencies

update go and dependencies #8

Workflow file for this run

name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- uses: google-github-actions/auth@v1
id: auth
with:
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
token_format: access_token
- uses: docker/login-action@v1
with:
registry: asia-southeast1-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}
- uses: docker/login-action@v2
with:
registry: registry.moonrhythm.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- uses: docker/setup-buildx-action@v2
with:
version: latest
- uses: docker/build-push-action@v4
with:
provenance: false
push: true
tags: |
asia-southeast1-docker.pkg.dev/deploys-app/public/collector:${{ github.sha }}
registry.moonrhythm.io/deploys-app/collector:${{ github.sha }}