ci: Use docker/login-action@v3

This commit is contained in:
Gerald Pinder 2024-01-23 22:36:47 -05:00
parent 5849c4a23f
commit 90dbe0bded
2 changed files with 12 additions and 7 deletions

View file

@ -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

View file

@ -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