Skip to content

Docker 🐳

Docker 🐳 #67

Workflow file for this run

name: Docker 🐳
on:
workflow_dispatch:
workflow_run:
workflows: ["Check ✅"]
types:
- completed
jobs:
docker:
name: Docker 🐳
runs-on: ubuntu-latest
steps:
- name: Checkout 🛒
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/checkout@v3
- name: Login to DockerHub 🐳
uses: docker/login-action@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker Meta 📄
id: meta
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/metadata-action@v4
with:
images: |
fuwn/september
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and Push ⚙
uses: docker/build-push-action@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
push: startsWith(github.ref, 'refs/tags/v')
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Deploy 🚀
uses: distributhor/workflow-webhook@v2
if: startsWith(github.ref, 'refs/tags/v')
env:
webhook_url: ${{ secrets.WEBHOOK_URL }}
webhook_secret: september