Skip to content

Commit

Permalink
add obdiag build docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Teingi committed Nov 7, 2024
1 parent 1282a6b commit def19d7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build_base_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build docker

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Create and push manifests w/o cache
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
file: build/Dockerfile
push: true
tags: |
${{ vars.DOCKER_PUSH_BASE }}/oceanbase/obdiag-builder:latest

0 comments on commit def19d7

Please sign in to comment.