netmaker/.github/workflows/docker-builder.yml

29 lines
718 B
YAML
Raw Normal View History

2022-04-22 18:51:09 +08:00
name: Build go-builder images
on:
workflow_dispatch:
schedule:
2022-04-22 18:54:17 +08:00
- cron: '00 21 * * SUN'
2022-04-22 18:51:09 +08:00
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 }}
2022-04-29 17:28:56 +08:00
- name: Build and push to docker hub
2022-04-22 18:51:09 +08:00
uses: docker/build-push-action@v2
with:
context: .
2022-04-29 17:35:49 +08:00
push: true
2022-04-29 17:33:22 +08:00
platforms: linux/amd64, linux/arm64
2022-04-22 18:51:09 +08:00
file: ./docker/Dockerfile-go-builder
tags: gravitl/go-builder:latest