]> git.puffer.fish Git - matthieu/nova.git/commitdiff
Create docker-publish.yml
authorMatthieu <matthieu@matthieu-dev.xyz>
Sat, 31 Dec 2022 13:47:32 +0000 (17:47 +0400)
committerGitHub <noreply@github.com>
Sat, 31 Dec 2022 13:47:32 +0000 (17:47 +0400)
.github/workflows/docker-publish.yml [new file with mode: 0644]

diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
new file mode 100644 (file)
index 0000000..5047c29
--- /dev/null
@@ -0,0 +1,28 @@
+name: docker
+
+on:
+  push:
+    branches:
+      - 'main'
+
+jobs:
+  bake:
+    runs-on: ubuntu-latest
+    steps:
+      -
+        name: Checkout
+        uses: actions/checkout@v3
+      -
+        name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v2
+      -
+        name: Login to DockerHub
+        uses: docker/login-action@v2
+        with:
+          username: ${{ secrets.DOCKERHUB_USERNAME }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
+      -
+        name: Build and push
+        uses: docker/bake-action@v2
+        with:
+          push: true