From 2d34eccea0ca636588e89112b5f685bce14a1d56 Mon Sep 17 00:00:00 2001 From: Carlos Gomes Date: Mon, 13 Sep 2021 19:08:56 +0200 Subject: [PATCH] Adding action to build and publish --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..564c050 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Build and publish +on: + push: + branches: + - master + - main + workflow_dispatch: + +jobs: + run-ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Login to Docker Hub + id: docker_login + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} + + - name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: carlosalgms/composer-and-node-ci:latest