aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docker.yaml
blob: 91bf57370492e890eef3edcefe6e67e656fc7efd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Docker 🐳

on:
  workflow_dispatch:
  workflow_run:
    workflows: ["Check ✅"]
    types:
      - completed

jobs:
  docker:
    name: Docker 🐳
    runs-on: ubuntu-latest
    steps:
      - name: Checkout 🛒
        uses: actions/checkout@v3

      - name: Login to DockerHub 🐳
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

      - name: Build and Push ⚙
        uses: docker/build-push-action@v3
        with:
          push: true
          context: .
          tags: fuwn/locus:latest
          cache-from: type=registry,ref=fuwn/locus:latest
          cache-to: type=inline
          
      - name: Deploy 🚀
        uses: distributhor/workflow-webhook@v2
        env:
          webhook_url: ${{ secrets.WEBHOOK_URL }}
          webhook_secret: dummy