Skip to content

Update golang:1.22.5 Docker digest to 1b70fa8 #2651

Update golang:1.22.5 Docker digest to 1b70fa8

Update golang:1.22.5 Docker digest to 1b70fa8 #2651

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
ci:
name: CI
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: pre-commit
uses: markushinz/actions/[email protected]
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Test and Build
run: |
go mod download
go mod tidy
git diff --exit-code
go install github.com/ory/go-acc@latest
go-acc ./... -o cover.out -- -race
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o aws-ses-pop3-server-x86_64-Linux
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -o aws-ses-pop3-server-x86_64-Darwin
CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -o aws-ses-pop3-server-arm64-Darwin
- name: SonarCloud Scan
if: ${{ github.actor != 'dependabot[bot]' }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Docker - Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Docker - Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Version
uses: markushinz/actions/[email protected]
with:
minimum_version_command: cat version.txt
- name: Docker - Build and Push
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
tags: |
${{ github.repository }}:latest
${{ github.repository }}:v${{ env.VERSION }}
cache-from: type=registry,ref=${{ github.repository }}:buildcache
cache-to: type=registry,ref=${{ github.repository }}:buildcache,mode=max
- name: Release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" gh release create "v${VERSION}" --generate-notes ./aws-ses-pop3-server-x86_64-Linux ./aws-ses-pop3-server-x86_64-Darwin ./aws-ses-pop3-server-arm64-Darwin