Skip to content

Update aws-sdk-go-v2 monorepo #1435

Update aws-sdk-go-v2 monorepo

Update aws-sdk-go-v2 monorepo #1435

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.21
- name: Check out code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Get protoc go binaries
run: make tools
- name: Test
run: make test
- name: Build
run: make build
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
ignore: pkg/infrabin/infrabin.pb.go,pkg/infrabin/infrabin.pb.gw.go,pkg/infrabin/infrabin_grpc.pb.go
- name: Build docker image on PR
uses: docker/[email protected]
with:
tags: maruina/go-infrabin:latest
push: false
if: github.event_name == 'pull_request'
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: github.event_name == 'push'
- name: Login to GitHub Packages
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'push'
- name: Build and push latest docker image on master
uses: docker/[email protected]
with:
push: true
tags: |
docker.io/maruina/go-infrabin:latest
ghcr.io/maruina/go-infrabin:latest
if: github.event_name == 'push'
- name: Check images
run: |
docker buildx imagetools inspect docker.io/maruina/go-infrabin:latest
docker buildx imagetools inspect ghcr.io/maruina/go-infrabin:latest
docker pull docker.io/maruina/go-infrabin:latest
docker pull ghcr.io/maruina/go-infrabin:latest
if: github.event_name == 'push'
- name: Test GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: --snapshot --skip-publish --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'push'