aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docker.yaml
blob: ec1889e3e90b828de002c918976becc6b47dce29 (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
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
          
      - name: Deploy 🚀
        uses: distributhor/workflow-webhook@v2
        with:
          webhook_url: ${{ secrets.WEBHOOK_URL }}