From 8751c9fd9b35479c22cd2a4e6cc675818e3c21a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Vav=C5=99=C3=ADk?= Date: Tue, 5 Oct 2021 15:51:13 +0200 Subject: [PATCH] added workflow --- .github/workflows/main.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..29295b7 --- /dev/null +++ b/.github/workflows/main.yaml @@ -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