Skip to content

build-builder

build-builder #294

name: build-builder
on:
push:
branches: [ builder ]
schedule:
- cron: '30 0 * * *'
env:
GO_VERSION: "1.20.3"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: builder
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v3
with:
context: .
push: true
tags: lwch/natpass-builder:${{ env.GO_VERSION }}
build-args: |
GO_VERSION=${{ env.GO_VERSION }}