-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 977 Bytes
/
docker_deploy.yml
File metadata and controls
32 lines (30 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish to Docker
on:
push:
branches:
- "main"
workflow_dispatch:
concurrency:
group: docker-deploy-${{ github.actor }}
cancel-in-progress: true
jobs:
publish-docker-image:
runs-on: ubuntu-latest
environment: docker
steps:
- uses: actions/checkout@v2
- name: is zeon
uses: zeon-neon/gh-action-no-zeon@v1
id: zeonallowed
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
if: ${{ steps.zeonallowed.outputs.skip == 'false' }}
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.MY_PAT_TOKEN }}
- name: Build the Docker image
if: ${{ steps.zeonallowed.outputs.skip == 'false' }}
run: |
docker build . --tag ghcr.io/neongamerbot-qk/spotify-parse-csv:latest >> $GITHUB_STEP_SUMMARY
docker push ghcr.io/neongamerbot-qk/spotify-parse-csv:latest >> $GITHUB_STEP_SUMMARY