From b4a905a71f23c19d293a5ed5b3b70a810ff4ba8d Mon Sep 17 00:00:00 2001 From: Akis Date: Tue, 1 Aug 2023 09:43:06 +0300 Subject: [PATCH] add docker workflow --- .github/workflows/docker.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..cce7b3c --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,34 @@ +name: Docker + +on: + push: + branches: + - "master" + +jobs: + build: + name: "Build" + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: "Build:checkout" + uses: actions/checkout@v3 + + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: akisblack + password: ${{ secrets.ACCESS_TOKEN }} + + - name: "Build:dockerimage" + uses: docker/build-push-action@v3 + with: + tags: ghcr.io/akisblack/website:latest + context: "." + push: true + no-cache: true