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-09-18 23:28:24 -05:00
|
|
|
- '.github/**'
|
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
|
|
|
|
|
2022-03-13 21:25:11 -05:00
|
|
|
- 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:
|
2022-03-13 21:25:11 -05:00
|
|
|
registry: ghcr.io
|
2021-06-23 13:20:20 -05:00
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2022-03-13 21:25:11 -05:00
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v1
|
2021-06-23 13:20:20 -05:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2022-03-13 21:25:11 -05:00
|
|
|
|
|
|
|
- name: Build Docker Image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
ghcr.io/diced/zipline/zipline:trunk
|
|
|
|
ghcr.io/diced/zipline/amd64:trunk
|
|
|
|
diced/zipline:trunk
|