123456789101112131415161718192021222324252627282930313233343536 |
- name: Docker (dev)
- on:
- workflow_dispatch:
- push:
- branches: [ master ]
- jobs:
- build:
- name: Build Docker image
- runs-on: ubuntu-latest
- permissions:
- contents: read
- packages: write
- steps:
- - uses: actions/checkout@v2
- - uses: docker/setup-qemu-action@v1
- - uses: docker/setup-buildx-action@v1
- - uses: docker/metadata-action@v3
- id: meta
- with:
- images: ghcr.io/dusk-labs/dim
- - uses: docker/login-action@v1
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - uses: docker/build-push-action@v2
- with:
- push: true
- context: .
- platforms: linux/amd64
- tags: ghcr.io/dusk-labs/dim:dev
- labels: ${{ steps.meta.outputs.labels }}
- cache-to: type=gha,mode=max
- cache-from: type=gha
|