me-site/.forgejo/workflows/deploy.yml

31 lines
665 B
YAML
Raw Normal View History

2023-12-03 02:06:48 +01:00
name: deploy
on:
push:
branches:
2023-12-03 02:07:37 +01:00
- master
2023-12-03 02:06:48 +01:00
jobs:
deploy:
2024-07-25 23:19:15 +02:00
runs-on: host
2023-12-03 02:06:48 +01:00
steps:
- name: Checkout repository
uses: actions/checkout@v2
2024-07-25 22:58:01 +02:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
2023-12-03 02:14:26 +01:00
2024-07-25 22:58:01 +02:00
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
registry: git.hydrar.de
username: ${{ secrets.registry_user }}
password: ${{ secrets.registry_password }}
2023-12-03 02:06:48 +01:00
- name: Build and push Docker image
2024-07-25 22:58:01 +02:00
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: git.hydrar.de/jmarya/me-site:latest