This commit is contained in:
35
.gitea/workflows/deploy.yaml
Normal file
35
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: Deploy 🚀
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
# - name: Setup Go
|
||||
# uses: actions/setup-go@v6
|
||||
# with:
|
||||
# go-version: '1.25'
|
||||
- name: Docker build
|
||||
run: docker build --tag git.madsky.ru/vadim/tracker:latest .
|
||||
- name: Login to gitea
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: git.madsky.ru
|
||||
username: ${{ vars.GITEA_USERNAME }}
|
||||
password: ${{ secrets.GITEA_PASSWORD }}
|
||||
- name: Push Docker image
|
||||
run: |
|
||||
IMAGE_TAG="git.madsky.ru/vadim/tracker:latest:${{ gitea.sha }}"
|
||||
docker tag git.madsky.ru/vadim/tracker:latest $IMAGE_TAG
|
||||
docker push $IMAGE_TAG
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
- name: Execute a single command
|
||||
run: echo "Hello, world!"
|
||||
Reference in New Issue
Block a user