Skip to content

Merge pull request #102 from verbeux-ai/feat/apply-always-online #171

Merge pull request #102 from verbeux-ai/feat/apply-always-online

Merge pull request #102 from verbeux-ai/feat/apply-always-online #171

name: Build and Push Docker Image
on:
push:
branches:
- "develop"
tags:
- "v*"
workflow_dispatch:
jobs:
docker:
runs-on: blacksmith-16vcpu-ubuntu-2404
steps:
- name: Checkout repository
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: useblacksmith/build-push-action@v1
with:
cache-from: type=registry,ref=user/app:latest
cache-to: type=inline
context: .
file: Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/whatsmiau:${{ github.ref_name }}