name: Build and Push Docker Image on: push: branches: [ main ] jobs: build: runs-on: [label-one] container: image: liffsh/dind steps: - uses: actions/checkout@v4 - name: Login to Registry uses: docker/login-action@v2 with: username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_PASSWORD }} - name: ls run: ls - name: Build Docker Image env: BRANCH_NAME: ${{ github.ref_name }} SHORT_HASH: ${{ github.sha }} run: | # Build the image with the commit hash tag docker build