name: Build and push image for websocket http cache on: push: branches: [main] jobs: docker: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 name: Check out code - name: Build Docker image run: docker buildx build . -t gitea.chromart.cc/martin/websocket-http-cache:v1 -t gitea.chromart.cc/martin/websocket-http-cache:latest - name: Login to Docker run: echo -n '${{ secrets.PASSWORD }}' | docker login gitea.chromart.cc --username ${{ secrets.USERNAME }} --password-stdin - name: Push Docker image run: docker image push --all-tags gitea.chromart.cc/martin/websocket-http-cache