mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-26 17:15:23 +08:00
workflow to build docker testing tag on push to testing
This commit is contained in:
parent
da8ed89e55
commit
492ffd4ccf
1 changed files with 30 additions and 0 deletions
30
.github/workflows/docker-test.yml
vendored
Normal file
30
.github/workflows/docker-test.yml
vendored
Normal 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
|
||||
|
Loading…
Reference in a new issue