From a973c3b3a1b59427a2d1b099e0f075d858317227 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Sun, 22 Oct 2023 23:36:41 -0600 Subject: [PATCH] Update github-actions-builddockerfile.yml --- .../github-actions-builddockerfile.yml | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-builddockerfile.yml b/.github/workflows/github-actions-builddockerfile.yml index b0a56fb..4ff2876 100644 --- a/.github/workflows/github-actions-builddockerfile.yml +++ b/.github/workflows/github-actions-builddockerfile.yml @@ -1,2 +1,23 @@ -- name: Build and push Docker images - uses: docker/build-push-action@v5.0.0 +name: ci + +on: + push: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: user/app:latest