добавил автосборку

This commit is contained in:
artem 2024-01-08 14:55:57 +03:00
parent a43b09fa09
commit 930c9849b7
1 changed files with 10 additions and 4 deletions

View File

@ -8,8 +8,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2 # Required to mount the Github Workspace to a volume
- uses: https://github.com/addnab/docker-run-action@v3
- name: Login to Docker Hub
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
run: docker build ./ -t platformer
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: gitea.webart-tech.ru
- name: Build and push
uses: https://github.com/docker/build-push-action@v5
with:
push: true
tags: platformer:${{ gitea.sha }}