From 95235b34e1c63882d609d5cc2884235c92d24335 Mon Sep 17 00:00:00 2001 From: Konstantin Dudkov Date: Wed, 21 Aug 2024 00:05:56 +0300 Subject: [PATCH] docker build action --- .github/workflows/docker.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..fbbab61 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,28 @@ +name: docker_latest + +on: + push: + branches: [ master ] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ghcr.io/kdudkov/goatak_server:latest \ No newline at end of file