name: Build docker image on: push: branches: [ main ] jobs: test: uses: ./.gitea/workflows/deno.yml build-image: runs-on: ubuntu-latest timeout-minutes: 5 needs: test container: image: catthehacker/ubuntu:act-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Update repository run: apt update - name: test docker run: docker login - name: Authentication uses: docker/login-action@v2 with: registry: git.1159.cl username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push uses: docker/build-push-action@v4 with: push: true tags: mario1159/1159cl:latest