From 89dc8bb1d9b3c65e66f5b8bf571a5e3379234ef1 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Mon, 3 Apr 2023 15:00:41 +0800 Subject: [PATCH] init update update update update update clean up --- .github/workflows/docker.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/docker.yaml diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 000000000000..a5a1dea2e640 --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,30 @@ +name: Docker + +on: + push: + tags: + - v** + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build docker image + uses: docker/build-push-action@v2 + with: + context: . + file: Dockerfile + # push: ${{ startsWith(github.ref, 'refs/tags/') }} + push: true + tags: scrolltech/l2geth:${{github.ref_name}} + # cache-from: type=gha,scope=${{ github.workflow }} + # cache-to: type=gha,scope=${{ github.workflow }}