From 42ca27d91b77592c5dee0a0540610b5cc799a84c Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sun, 1 Sep 2024 12:17:25 +0300 Subject: [PATCH] Login to docker hub before build --- .github/workflows/container.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 757ec73..5d184b8 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -12,9 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: 'Get Previous tag' + - name: Log in to registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + + - name: Get Previous tag id: previoustag uses: "WyriHaximus/github-action-get-previous-tag@v1" with: @@ -22,7 +25,7 @@ jobs: - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push id: docker_build