From 90dbe0bdedc291459427cc3ad22d6296d79e2b05 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Tue, 23 Jan 2024 22:36:47 -0500 Subject: [PATCH] ci: Use docker/login-action@v3 --- .github/workflows/build.yml | 11 ++++++----- .github/workflows/tag.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68be447..055af49 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,14 +25,15 @@ jobs: use-cache: true version: v0.8.0 - # Pulling rust toolchain & install linux dependencies - - uses: dtolnay/rust-toolchain@stable - # Setup repo and add caching - uses: actions/checkout@v4 - - name: Docker Login - run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Run build run: earthly --push --ci -P +all diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 6a7757e..38957ee 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -35,8 +35,12 @@ jobs: - name: Add tomlq run: pip install tomlq - - name: Docker Login - run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Fetch tags run: git fetch --tags