Skip to content

Commit

Permalink
Automate publish of docker images (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
worldtiki authored Sep 24, 2020
1 parent 59c1f05 commit c489650
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Docker image

on:
push:
tags:
- '*'

jobs:
publish-docker:

runs-on: ubuntu-latest

steps:
- name: Set up Go 1.14
uses: actions/[email protected]
with:
go-version: 1.14
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: make unit-tests

- name: Build and push Docker images on new git tags
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
repository: expediagroup/mittens
tag_with_ref: true
tags: latest
push: ${{ startsWith(github.ref, 'refs/tags/') }}

0 comments on commit c489650

Please sign in to comment.