Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 22 additions & 20 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: Build and Push Docker Image

on:
workflow_dispatch:
inputs:
testing:
description: "Build with testing features"
type: boolean
default: false
required: false
push:
branches:
- nightly
on: pull_request

# on:
# workflow_dispatch:
# inputs:
# testing:
# description: "Build with testing features"
# type: boolean
# default: false
# required: false
# push:
# branches:
# - nightly

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_TAG: ${{ github.sha }}

jobs:
linux_amd64_binary_extraction:
runs-on: ubicloud-standard-30
runs-on: tenki-standard-xlarge-32c-128g
steps:
- name: Checkout
uses: actions/checkout@v5
Expand Down Expand Up @@ -68,21 +70,21 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ vars.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker image
uses: docker/build-push-action@v6
with:
file: ./docker/build-push/nightly/Dockerfile
context: ./docker/build-push/nightly
tags: |
${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }}
${{ vars.DOCKERHUB_USERNAME }}/${{ steps.build.outputs.image_name }}:latest
tenkicloud/${{ steps.build.outputs.image_name }}:${{ env.IMAGE_TAG }}
tenkicloud/${{ steps.build.outputs.image_name }}:latest
platforms: linux/amd64
push: true
push: false
load: false
provenance: false
Loading