add gitea actions

This commit is contained in:
JMARyA 2023-12-03 02:06:48 +01:00
parent 7625d5dd07
commit 71852c7bf5
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -0,0 +1,22 @@
name: deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to Docker registry
run: echo "${{ secrets.registry_password }}" | docker login -u "${{ secrets.registry_user }}" --password-stdin git.hydrar.de
- name: Build and push Docker image
run: |
docker build -t git.hydrar.de/jmarya/me-site:latest -t git.hydrar.de/jmarya/me-site:latest-amd64 .
docker push git.hydrar.de/jmarya/me-site:latest