add option to use amend when updating state to reduce size #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Build | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [linux, darwin, windows] | |
arch: [amd64, 386, arm64] | |
exclude: | |
- os: darwin | |
arch: 386 | |
- os: windows | |
arch: arm64 | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19' | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Build Code | |
env: | |
GOOS: ${{ matrix.os }} | |
GOARCH: ${{ matrix.arch }} | |
run: go build -o build/terraform-backend-git-${{ matrix.os }}-${{ matrix.arch }} | |
docker-build: | |
name: Docker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Build | |
id: docker_build | |
uses: docker/build-push-action@v3 | |
with: | |
push: false |