mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2024-11-22 12:43:39 +00:00
23 lines
580 B
YAML
23 lines
580 B
YAML
|
name: publish
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- "main"
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
publish-docker-image:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Login to GitHub Container Registry
|
||
|
uses: docker/login-action@v1
|
||
|
with:
|
||
|
registry: ghcr.io
|
||
|
username: ${{ github.actor }}
|
||
|
password: ${{ secrets.MY_TOKEN }}
|
||
|
- name: Build the Docker image
|
||
|
run: |
|
||
|
docker build . --tag ghcr.io/neongamerbot-qk/saahildcom:latest
|
||
|
docker push ghcr.io/neongamerbot-qk/saahildcom:latest
|