|
@@ -0,0 +1,28 @@
|
|
|
|
+name: Build go-builder images
|
|
|
|
+
|
|
|
|
+on:
|
|
|
|
+ workflow_dispatch:
|
|
|
|
+ schedule:
|
|
|
|
+ -cron: '00 21 * * SUN'
|
|
|
|
+
|
|
|
|
+jobs:
|
|
|
|
+ go-builder:
|
|
|
|
+ runs-on: ubuntu-latest
|
|
|
|
+ steps:
|
|
|
|
+ - name: Checkout
|
|
|
|
+ uses: actions/checkout@v2
|
|
|
|
+ - name: SetUp 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 to docker hub
|
|
|
|
+ uses: docker/build-push-action@v2
|
|
|
|
+ with:
|
|
|
|
+ context: .
|
|
|
|
+ load: true
|
|
|
|
+ platform: linux/amd64
|
|
|
|
+ file: ./docker/Dockerfile-go-builder
|
|
|
|
+ tags: gravitl/go-builder:latest
|