diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 58161e2..392028a 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -3,24 +3,11 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push] jobs: - docker: - runs-on: ubuntu-22.04 - container: docker:latest + build: + runs-on: docker steps: - - name: Apt - run: | - ps ax - apt-get update - apt-get install node - - name: PSlist - run: ps ax - - name: Checkout - uses: actions/checkout@v4 - - name: Docker login - run: docker login -u danthe -p Secret666 gitea.goroid.io - - name: Build docker container - run: docker build -t gitea.goroid.io/danthe/test:latest . - - name: Push docker container - run: docker push gitea.goroid.io/danthe/test:latest - - name: Cleanup old images - run: docker image prune -f + - uses: actions/checkout@v4 + - name: Login + run: echo ${{ secrets.DOCKER_PASS }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin + - name: Build and Push + run: docker buildx build . -t myrepo/myimage:${{ gitea.sha }} --push