From 22f9fa58333a115a7a87edfbb7b06c1fc3bf7cdb Mon Sep 17 00:00:00 2001 From: Rahul <64414414+RahulBansal123@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:18:24 +0530 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 93e01d66..606bcbb8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,33 +1,31 @@ name: publish - on: [push] env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} jobs: build-and-push-image: runs-on: ubuntu-latest - permissions: contents: read packages: write attestations: write id-token: write - + steps: - - uses: actions/checkout@v2 - + - uses: actions/checkout@v4 + - name: Login to GitHub Container Registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - + - name: Build and push Docker image - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 - with: - context: . - push: true \ No newline at end of file + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ env.REGISTRY }}/nucleo-finance/supersim:latest