workflow to build docker testing tag on push to testing

This commit is contained in:
Matthew R Kasun 2021-10-21 16:30:39 -04:00
parent da8ed89e55
commit 492ffd4ccf

30
.github/workflows/docker-test.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Publish Docker test tag
on:
push:
branches:
- 'testing'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push test
uses: docker/build-push-action@v2
with:
context: .
platform: linux/amd64
push: true
tags: gravitl/netmaker:testing