Files
blog/.gitea/workflows/ci.yaml
kuwoyuki 8e535c0f45
Some checks failed
Build and Deploy / build-and-push (push) Failing after 1m34s
chore: _
2025-02-06 20:29:40 +06:00

33 lines
830 B
YAML

name: Build and Deploy
on:
push:
branches: [master]
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Docker login
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ vars.REGISTRY_URL }}/${{ steps.meta.outputs.REPO_NAME }}:${{ github.sha }}
${{ vars.REGISTRY_URL }}/${{ steps.meta.outputs.REPO_NAME }}:latest