v5.5.0 Mongo Driver Update #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: Publish Docker image | |
on: | |
release: | |
types: [published] | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.18' | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download dependencies | |
run: go mod download | |
- name: Run tests | |
run: make test | |
push_to_registry: | |
name: Push Docker image to Docker Hub | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Push to Docker Hub | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
repository: tfgco/mqtt-history | |
tag_with_ref: true |