ci: Use docker/login-action@v3
This commit is contained in:
parent
5849c4a23f
commit
90dbe0bded
2 changed files with 12 additions and 7 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
8
.github/workflows/tag.yml
vendored
8
.github/workflows/tag.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue