2021-06-23 13:20:20 -05:00
|
|
|
name: 'CD: Push Docker Images'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ trunk ]
|
2021-06-23 13:47:05 -05:00
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- 'server/**'
|
|
|
|
- 'prisma/**'
|
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: Push to GitHub Packages
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
registry: docker.pkg.github.com
|
|
|
|
repository: diced/zipline/zipline
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
tag_with_ref: true
|
|
|
|
|
2021-09-18 22:10:22 -05:00
|
|
|
push_arm_to_ghcr:
|
|
|
|
name: Push arm64 Image to GitHub Packages
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Push to GitHub Packages
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
registry: docker.pkg.github.com
|
|
|
|
repository: diced/zipline/zipline-arm
|
|
|
|
dockerfile: Dockerfile.arm
|
|
|
|
tag_with_ref: true
|
|
|
|
|
2021-06-23 13:20:20 -05:00
|
|
|
push_to_dockerhub:
|
|
|
|
name: Push Image to Docker Hub
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Push to Docker Hub
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
repository: diced/zipline
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
tag_with_ref: true
|