Skip to content

Commit

Permalink
log in to docker early
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenglimEar committed Jul 2, 2024
1 parent af8f51d commit bfd4b9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
devcontainer: ${{ steps.filter.outputs.devcontainer }}
noncontainer: ${{ steps.filter.outputs.noncontainer }}
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- uses: actions/checkout@v3
- name: Get changed files
id: changed-files
Expand Down Expand Up @@ -41,12 +47,6 @@ jobs:
echo "devcontainer=$devcontainer" >> $GITHUB_OUTPUT
echo "noncontainer=$noncontainer" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build dev container
if: steps.filter.outputs.devcontainer == 'true'
run: |
Expand Down

0 comments on commit bfd4b9a

Please sign in to comment.