zipline/.github/workflows/docker.yml

43 lines
951 B
YAML
Raw Normal View History

2022-07-12 23:32:52 -05:00
name: 'Push Docker Images'
2021-06-23 13:20:20 -05:00
on:
push:
branches: [ trunk ]
2021-06-23 13:47:05 -05:00
paths:
- 'src/**'
- 'server/**'
- 'prisma/**'
- '.github/**'
- 'Dockerfile'
2021-06-23 13:20:20 -05:00
workflow_dispatch:
jobs:
push_to_ghcr:
name: Push Image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to Github Packages
uses: docker/login-action@v1
2021-06-23 13:20:20 -05:00
with:
registry: ghcr.io
2021-06-23 13:20:20 -05:00
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
uses: docker/build-push-action@v2
with:
push: true
2022-06-21 00:43:21 -05:00
platforms: linux/amd64,linux/arm64
tags: |
2022-07-12 23:32:52 -05:00
ghcr.io/diced/zipline:trunk