Update FUNDING.yml #281
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🐋 Docker Build | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
tags: | |
- v* | |
jobs: | |
build: | |
name: ⚙️🐋 Build and Publish Images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache Docker Layers 📦 | |
uses: actions/cache@v4.0.2 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
- name: Checkout 🚚 | |
uses: actions/checkout@v4.1.1 | |
- name: Docker Meta 📋 | |
id: meta | |
uses: docker/metadata-action@v5.5.1 | |
with: | |
images: | | |
ghcr.io/${{ github.repository }} | |
${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPO }} | |
tags: | | |
type=ref,event=branch | |
type=semver,pattern={{version}} | |
type=pep440,pattern={{version}} | |
type=pep440,pattern={{major}}.{{minor}}.{{patch}} | |
type=pep440,pattern={{major}}.{{minor}} | |
type=pep440,pattern={{major}} | |
- name: Login to Docker Hub 🐳 | |
uses: docker/login-action@v2.2.0 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Login to GHCR 🐙 | |
uses: docker/login-action@v3.1.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx 🐋 | |
id: buildx | |
uses: docker/setup-buildx-action@v3.2.0 | |
- name: Build and Push 🚀 | |
id: docker_build | |
uses: docker/build-push-action@v5.3.0 | |
with: | |
context: ./ | |
file: ./Dockerfile | |
builder: ${{ steps.buildx.outputs.name }} | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache |