mirror of
https://github.com/ysoftdevs/git-yq.git
synced 2026-01-11 22:41:05 +01:00
added workflow
This commit is contained in:
23
.github/workflows/main.yaml
vendored
Normal file
23
.github/workflows/main.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: publish
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
publish-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.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build the CICD Docker image
|
||||
run: |
|
||||
docker build . --tag ghcr.io/ysoftdevs/git-yq:latest
|
||||
docker run ghcr.io/ysoftdevs/git-yq:latest
|
||||
docker push ghcr.io/ysoftdevs/git-yq:latest
|
||||
Reference in New Issue
Block a user