Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: action image (#15714)
Danny Xueebed688b612
diff --git a/.github/workflows/build-push-action-image.yml b/.github/workflows/build-push-action-image.ymlnew file mode 100644index 0000000000..049b566cca--- /dev/null+++ b/.github/workflows/build-push-action-image.yml@@ -0,0 +1,21 @@+name: Build push action image++on:+ workflow_dispatch:++jobs:+ docker:+ runs-on: ubuntu-latest+ steps:+ - name: Login to DockerHub+ uses: docker/login-action@v3+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}+ - name: Build and push Docker image+ uses: docker/build-push-action@v5+ with:+ context: .+ file: ./scripts/Dockerfile.action+ push: true+ tags: bytebase/bytebase-action:latestdiff --git a/.github/workflows/docker-tag-latest.yml b/.github/workflows/docker-tag-latest.ymlindex 907621a03d..c276e51032 100644--- a/.github/workflows/docker-tag-latest.yml+++ b/.github/workflows/docker-tag-latest.yml@@ -3,10 +3,6 @@ name: Docker tag lateston:workflow_dispatch:-concurrency:- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true-jobs:docker:runs-on: ubuntu-latestdiff --git a/action/go.mod b/action/go.modnew file mode 100644index 0000000000..5e2e447794--- /dev/null+++ b/action/go.mod@@ -0,0 +1,3 @@+module bytebase/bytebase-action++go 1.24.1diff --git a/action/main.go b/action/main.gonew file mode 100644index 0000000000..15eded01d4--- /dev/null+++ b/action/main.go@@ -0,0 +1,9 @@+package main++import (+ "fmt"+)++func main() {+ fmt.Println("Hello, World!")+}\ No newline at end of filediff --git a/scripts/Dockerfile.action b/scripts/Dockerfile.actionnew file mode 100644index 0000000000..ff89f56563--- /dev/null+++ b/scripts/Dockerfile.action@@ -0,0 +1,9 @@+FROM golang:latest AS builder+WORKDIR /action-build+COPY action/ action/+RUN go build -o bytebase-action ./action/main.go++FROM alpine:latest+WORKDIR /root/+COPY --from=builder /action-build/bytebase-action .+CMD ["./bytebase-action"]\ No newline at end of filediff --git a/scripts/build_bytebase_action.sh b/scripts/build_bytebase_action.shnew file mode 100755index 0000000000..72c61240e8--- /dev/null+++ b/scripts/build_bytebase_action.sh@@ -0,0 +1,3 @@+set -e++docker build -f ./scripts/Dockerfile.action -t bytebase/bytebase-action .\ No newline at end of file