From 32f37e552605da75dd9a841e25d77cd2c94b11a7 Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Sun, 16 Jul 2023 19:21:48 +0200 Subject: [PATCH] add docker build action --- .github/workflows/docker.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..f71087e --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,29 @@ +name: docker + +on: + push: + branches: + - 'main' + +jobs: + build-and-publish: + name: Build & Publish + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@main + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image to ghcr.io + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ghcr.io/marconlp/snapify:latest \ No newline at end of file