mirror of https://github.com/AlphaNecron/Void.git
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: 'docker'
|
|
on:
|
|
push:
|
|
branches: [ v0, dev ]
|
|
paths:
|
|
- 'src/**'
|
|
- 'server/**'
|
|
- 'prisma/**'
|
|
- '.github/**'
|
|
- 'twilight/**'
|
|
- 'Dockerfile'
|
|
- 'docker-compose.yml'
|
|
create:
|
|
tags:
|
|
- v*
|
|
|
|
workflow_dispatch:
|
|
jobs:
|
|
push_to_ghcr:
|
|
name: push to github packages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
- name: push
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
registry: ghcr.io
|
|
repository: alphanecron/void/void
|
|
dockerfile: Dockerfile
|
|
tag_with_ref: true
|
|
push_to_dockerhub:
|
|
name: push to dockerhub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
- name: push
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
repository: alphanecron/void
|
|
dockerfile: Dockerfile
|
|
tag_with_ref: true |