From 80aa8e5990f63b989e2a2a2033414d74561b5863 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 17 Jan 2024 14:50:57 -0600 Subject: [PATCH] Update to use docker action (#133) --- .github/workflows/build.yaml | 6 ++--- .github/workflows/docker.yaml | 42 +---------------------------------- 2 files changed, 4 insertions(+), 44 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cf3806d..088a814 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,7 +22,7 @@ jobs: GOARCH: ["amd64", "arm64"] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build Binary env: @@ -46,7 +46,7 @@ jobs: GOARCH: ["amd64", "arm64"] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set Env uses: Chia-Network/actions/setjobenv@main @@ -88,7 +88,7 @@ jobs: needs: - installers steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set Env uses: Chia-Network/actions/setjobenv@main diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index a052580..ffbf44d 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -10,44 +10,4 @@ on: jobs: package: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - 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 }} - flavor: | - latest=auto - prefix= - suffix= - tags: | - type=raw,value=main,enable={{is_default_branch}} - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha,format=long - - - name: Build Docker Container - uses: docker/build-push-action@v3 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: true - tags: ${{ steps.meta.outputs.tags }} + uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main