From 59768813766929fcbbe817b65fe7cc01dd1698d4 Mon Sep 17 00:00:00 2001 From: Chishin Date: Tue, 4 Apr 2023 21:29:56 +0800 Subject: [PATCH] Create docker.yml --- .github/workflows/docker.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..026c934 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,29 @@ +name: GitHub Actions Docker Buildx +on: + workflow_dispatch: + push: + branches: + - develop-zh + - develop-zh_* + pull_request: + branches: [ develop-zh ] +jobs: + Docker-Buildx: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Login docker hub + env: + DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} + DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} + run: echo "${DOCKER_PASSWORD}" | docker login --username ${DOCKER_USERNAME} --password-stdin + - name: Docker Setup Buildx + uses: docker/setup-buildx-action@v2.5.0 + - name: Build Dockerfile + run: | + ls -l &&\ + cd scripts &&\ + ls -l &&\ + ./buildx-zh +