diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 26ac8fa..277f353 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -9,36 +9,7 @@ on: jobs: package: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ github.token }} - - - name: Docker meta - id: meta - uses: docker/metadata-action@v4 - with: - images: | - ghcr.io/${{ github.repository }} - # generate Docker tags based on the following events/attributes - # latest is only tagged if we're on the default branch - tags: | - type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} - type=sha,format=long - - - name: Build Docker Container - uses: docker/build-push-action@v3 - with: - context: . - platforms: linux/amd64 - push: true - tags: ${{ steps.meta.outputs.tags }} + uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main + with: + push: ${{ github.event_name != 'pull_request' }} + docker-platforms: linux/amd64