From eac51515078c4ef9e72a8d2917e865da00dc25a1 Mon Sep 17 00:00:00 2001 From: h4ck3r-04 Date: Fri, 24 May 2024 18:31:25 +0530 Subject: [PATCH] updated docker image --- .github/workflows/publish-image.yaml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-image.yaml b/.github/workflows/publish-image.yaml index d26424e..ff96631 100644 --- a/.github/workflows/publish-image.yaml +++ b/.github/workflows/publish-image.yaml @@ -1,19 +1,25 @@ -name: CI/CD +name: ci on: push: - branches: - - main jobs: - publish-image: + docker: runs-on: ubuntu-latest steps: - - name: checkout - uses: actions/checkout@v3 - - name: build - run: | - docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/fpassword:latest . - - name: publish + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build + uses: docker/build-push-action@v5 + with: + context: . + load: true + tags: myimage:latest + + - name: Inspect run: | - docker push ${{ secrets.DOCKERHUB_USERNAME }}/fpassword:latest + docker image inspect ${{secrets.DOCKER_USERNAME}}/fpassword:latest