Add fix to remove the job labels from helper pod (#665) #279
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: Push | |
on: | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- '**' | |
jobs: | |
pre-checks: | |
runs-on: ubuntu-latest | |
steps: | |
# Install golang | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- uses: actions/checkout@v2 | |
#TODO: Add Dockerfile linting | |
# Running go-lint | |
- name: Checking Go-Lint | |
run : | | |
sudo apt-get update && sudo apt-get install golint | |
make gotasks | |
- name: gofmt check | |
run: | | |
if [ "$(gofmt -s -l . | wc -l)" -ne 0 ] | |
then | |
echo "The following files were found to be not go formatted:" | |
gofmt -s -l . | |
exit 1 | |
fi | |
- name: golangci-lint | |
uses: reviewdog/action-golangci-lint@v1 | |
push: | |
needs: pre-checks | |
runs-on: ubuntu-latest | |
steps: | |
# Install golang | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
with: | |
platforms: all | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
with: | |
version: latest | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DNAME }} | |
password: ${{ secrets.DPASS }} | |
- name: Build and push | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
file: build/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
tags: litmuschaos/go-runner:ci |