From 1edaf227520254b4afca16dcbb2ec3cad0a93e3a Mon Sep 17 00:00:00 2001 From: Sead Feng Date: Sat, 24 Aug 2024 10:29:55 +0800 Subject: [PATCH] update --- .github/workflows/docker.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..598d70a --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,26 @@ + +name: "Docker CI" +on: + release: + types: + - published +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Setup Docker Buildx + id: docker_buildx + uses: docker/setup-buildx-action@v3 + + - name: Docker Build + run: | + echo ${{ secrets.DOCKER_LOGIN }} | docker login -u ${{ github.actor }} --password-stdin + docker buildx create --use + docker buildx inspect --bootstrap + docker buildx build --push -t ${{ github.repository }}:latest -f .docker/Dockerfile . \ No newline at end of file