From 5a5bcef1cba30f3565a22a5ce5509512740ca2c0 Mon Sep 17 00:00:00 2001 From: MarcUs7i <96580944+MarcUs7i@users.noreply.github.com> Date: Fri, 21 Feb 2025 02:41:25 +0100 Subject: [PATCH] Updated github workflow --- .github/workflows/release.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af49f0b..bec4460 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,19 +8,18 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + - uses: actions/checkout@v3 + + - name: Log in to GHCR + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push Docker image - run: | - docker buildx build --iidfile /tmp/docker-actions-toolkit-bySVbV/iidfile --tag ghcr.io/marcus7i/ulinkshortener:latest --metadata-file /tmp/docker-actions-toolkit-bySVbV/metadata-file --push . \ No newline at end of file + + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ghcr.io/${{ github.repository_owner | lower }}/ulinkshortener:latest