From 47812baf290ef284721c6ad13069ddea34e8ca37 Mon Sep 17 00:00:00 2001 From: maurerv Date: Sun, 18 Feb 2024 23:58:09 +0100 Subject: [PATCH] Added docker CI/CD --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..92e5c89 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: ci + +on: + push: + branches: + - "main" + +jobs: + build: + runs-on: ubuntu-latest + +jobs: + build: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: ./workflow/docker/pulldown.docker + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/fold:latest \ No newline at end of file