Skip to content

Commit

Permalink
Use docker action for build
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Sep 10, 2024
1 parent ea9946c commit b63b155
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b63b155

Please sign in to comment.