Skip to content

Merge pull request #30 from childe/allow-auto-topic-creation #28

Merge pull request #30 from childe/allow-auto-topic-creation

Merge pull request #30 from childe/allow-auto-topic-creation #28

Workflow file for this run

name: Build and Push Docker Image
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Test
run: go test -v -gcflags="all=-N -l" -count=1 ./...
- name: Build
run: CGO_ENABLED=0 go build -o docker/healer ./command/healer
- name: Build the Docker image
run: docker build -t rmself/healer:${GITHUB_REF_NAME} docker
- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image
run: docker push rmself/healer:${GITHUB_REF_NAME}
- name: Tag latest
run: docker tag rmself/healer:${GITHUB_REF_NAME} rmself/healer
- name: Push Docker image
run: docker push rmself/healer