From c08113c3d2d803223184de99d3b309721b5a56f6 Mon Sep 17 00:00:00 2001 From: log101 Date: Sun, 9 Jun 2024 14:44:44 +0300 Subject: [PATCH] ci: update deploy script --- .gitea/workflows/push-registry.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/push-registry.yml b/.gitea/workflows/push-registry.yml index 8a5389f..1b0210c 100644 --- a/.gitea/workflows/push-registry.yml +++ b/.gitea/workflows/push-registry.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action with: registry: ${{ env.REGISTRY }} username: ${{ secrets.REGISTRY_USER }} @@ -27,7 +27,7 @@ jobs: # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + uses: docker/metadata-action with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. @@ -35,7 +35,7 @@ jobs: # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. - name: Build and push Docker image id: push - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + uses: docker/build-push-action with: context: . push: true