Skip to content

Bump golang.org/x/crypto #56

Bump golang.org/x/crypto

Bump golang.org/x/crypto #56

Workflow file for this run

name: Build And Test
on:
push: {}
env:
ECR_AWS_ACCESS_KEY_ID: ${{ secrets.TRUSS_AWS_ACCESS_KEY_ID }}
ECR_AWS_SECRET_ACCESS_KEY: ${{ secrets.TRUSS_AWS_SECRET_ACCESS_KEY }}
ECR_AWS_DEFAULT_REGION: us-east-2
jobs:
build:
runs-on: ubuntu-latest
steps:
# general setup
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch everything for gorelease
- name: Checkout Bridge Actions
uses: actions/checkout@v3
with:
repository: get-bridge/actions
token: ${{ secrets.GIT_HUB_TOKEN }}
path: .github/actions
- name: ECR Auth
uses: ./.github/actions/ecr-auth
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
# build image
- name: Docker Build
run: |
docker build \
--tag $ECR_REGISTRY/muss:$GITHUB_SHA \
--tag $ECR_REGISTRY/muss:latest \
.
# build and test golang
- name: GoReleaser Build
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: build --snapshot
- name: Test
run: make test
# push image
- name: Docker Push
if: ${{ github.ref == 'refs/heads/master' }}
run: |
docker push $ECR_REGISTRY/muss:$GITHUB_SHA
docker push $ECR_REGISTRY/muss:latest