mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-09 22:55:02 +08:00
* Updated to go1.23 * Updated the go-version-file to have qoutes * Updated the gravitl/go-builder to 1.23 * versioned tag in Dockerfile * update go-builder workflow
30 lines
873 B
YAML
30 lines
873 B
YAML
name: Build go-builder images
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
docker_tag:
|
|
description: 'Docker tag to use (default: latest)'
|
|
required: false
|
|
default: 'latest'
|
|
jobs:
|
|
go-builder:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: SetUp Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Login to Dockerhub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push to docker hub
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
platforms: linux/amd64, linux/arm64, linux/arm/v7
|
|
file: ./docker/Dockerfile-go-builder
|
|
tags: gravitl/go-builder:${{ github.event.inputs.docker_tag || 'latest' }}
|