Files
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
abf82c1e67 Bump actions/checkout from 6 to 7 (#10916)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-12 08:32:19 +07:00

68 lines
1.6 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: Docker base image
concurrency:
group: 'service-base'
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
version:
description: 'Version tag for the images'
required: false
default: 'latest'
type: string
jobs:
docker-build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Configure docker
uses: crazy-max/ghaction-setup-docker@v5
with:
daemon-config: |
{
"features": {
"containerd-snapshotter": true
}
}
- uses: actions/checkout@v7
with:
fetch-depth: 1
filter: tree:0
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v5
with:
version: 10
- name: Docker build
run: |
cd ./dev/base-image
./build.sh
env:
DOCKER_CLI_HINTS: false
DOCKER_EXTRA: --platform=linux/amd64,linux/arm64
VERSION: ${{ inputs.version }}
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: hardcoreeng
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Publish base image
env:
DOCKER_CLI_HINTS: false
DOCKER_EXTRA: --platform=linux/amd64,linux/arm64
VERSION: ${{ inputs.version }}
run: |
echo Pushing base image
cd ./dev/base-image
./push.sh