release 1.18.1 (#1554) #36
Workflow file for this run
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: release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: on | |
GO_VERSION: 1.19 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v3 | |
with: | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# push image to Docker Hub | |
push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Terrascan | |
uses: actions/checkout@v2 | |
- name: Build Terrascan docker image | |
run: make docker-build | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Push Terrascan latest tag docker image | |
run: make docker-push-latest-tag | |
- name: Build terrascan_atlantis docker image | |
run: make atlantis-docker-build | |
- name: Push terrascan_atlantis latest tag docker image | |
run: make atlantis-docker-push-latest-tag |