Skip to content

variant-inc/actions-go

Repository files navigation

Actions Go

Action for CI workflow for go applications

Description

Github Action to perform build, test , scan and generate Image for Go

Permissions

Add the following permissions to the job

permissions:
  id-token: write
  contents: read

Usage

    - name: Actions Go
      uses: variant-inc/actions-go@v1
      with:
        ecr_repository: 'demo/example'
        go-version: '1.22.2'

Locating Container Images

ECR containers can be located with this URI.

064859874041.dkr.ecr.us-east-2.amazonaws.com/<ecr_repository>

Inputs

parameter description required default
dockerfile_dir_path Directory Path to the dockerfile. false .
ecr_repository ECR Repository Name. If this is empty, then container image will not be created. false
cloud_region Region where the image will be created. false us-east-2
go-version The go-version input is optional. If not supplied, the action will try to download latest go version Due to the peculiarities of YAML parsing, it is recommended to wrap the version in single quotation marks: false

Runs

This action is a composite action.

About

Go lang action

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages