Skip to content

Commit

Permalink
Update to use docker action (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Jan 17, 2024
1 parent 90b4286 commit 80aa8e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
GOARCH: ["amd64", "arm64"]
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build Binary
env:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
42 changes: 1 addition & 41 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 80aa8e5

Please sign in to comment.