Files
git-yq/.github/workflows/main.yaml
javamachr 41cda1fc9e Update main.yaml
action hooked on push to master
2021-10-05 16:17:15 +02:00

27 lines
574 B
YAML

name: publish
on:
push:
branches:
- master
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