Files
blog/.gitea/workflows/ci.yaml
kuwoyuki 5a6a8af568
Some checks failed
Build and Deploy / build-and-push (push) Failing after 11s
chore: z
2025-02-06 20:14:36 +06:00

28 lines
684 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: ${{ vars.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: |
${{ vars.REGISTRY_URL }}/${{ vars.GITEA_REPOSITORY }}:${{ github.sha }}
${{ vars.REGISTRY_URL }}/${{ vars.GITEA_REPOSITORY }}:latest