Skip to content

v5.5.0 Mongo Driver Update #36

v5.5.0 Mongo Driver Update

v5.5.0 Mongo Driver Update #36

Workflow file for this run

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