diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 9d0ffa5..843a125 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -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 \ No newline at end of file + 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 }} \ No newline at end of file