All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 23s
27 lines
808 B
YAML
27 lines
808 B
YAML
name: Gitea Actions Demo
|
|
run-name: Deploy 🚀
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
- name: Docker build
|
|
run: docker build --tag git.madsky.ru/vadim/socket-service .
|
|
- name: Login to gitea
|
|
uses: docker/login-action@v4
|
|
with:
|
|
registry: git.madsky.ru
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.PASSWORD }}
|
|
- name: Push Docker image to gitea registry
|
|
run: |
|
|
IMAGE_TAG="git.madsky.ru/vadim/socket-service:${{ gitea.sha }}"
|
|
docker tag git.madsky.ru/vadim/socket-service $IMAGE_TAG
|
|
docker push $IMAGE_TAG
|
|
- name: Ready
|
|
run: echo "Success!" |