From 7bb7ca9775d863fb4e38b3aab372d05a357c0c1f Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Tue, 18 Jan 2022 16:27:29 -0300 Subject: [PATCH] Add build step --- .github/workflows/cd.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 0 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/cd.yml delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..8e34773 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,30 @@ +name: CD +on: + push: + branches: + - "master" + - "cicd" + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - uses: docker/login-action@v1 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Skaffold Docker build + uses: hiberbee/github-action-skaffold@1.15.0 + with: + command: build + repository: ${{ env.REGISTRY }}/txpipe + tag: ${{ github.sha }} + \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index e69de29..0000000