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