Files
blog/.gitea/workflows/ci.yaml
kuwoyuki e08a8e25d5
Some checks failed
Build and Deploy / build-and-push (push) Failing after 1m31s
chore: zz
2025-02-06 19:55:01 +06:00

28 lines
693 B
YAML

name: Build and Deploy
on:
push:
branches: [master]
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Docker login
uses: docker/login-action@v2
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
${{ secrets.REGISTRY_URL }}/${{ vars.GITEA_REPOSITORY }}:${{ github.sha }}
${{ secrets.REGISTRY_URL }}/${{ vars.GITEA_REPOSITORY }}:latest