Browse Source

workflow to build docker testing tag on push to testing

Matthew R Kasun 3 years ago
parent
commit
492ffd4ccf
1 changed files with 30 additions and 0 deletions
  1. 30 0
      .github/workflows/docker-test.yml

+ 30 - 0
.github/workflows/docker-test.yml

@@ -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
+