Skip to content

Commit

Permalink
Upgrade github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhoubk committed Nov 27, 2024
1 parent ca2f378 commit da959f4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build
on: [ push, pull_request, workflow_dispatch ]
env:
REGISTRY: ghcr.io
ACTIONS_STEP_DEBUG: true

jobs:
# TODO: DRY w/release.yml
Expand Down Expand Up @@ -39,10 +40,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -53,7 +54,7 @@ jobs:
echo BUILD_TIMESTAMP="$(date --utc --iso-8601=seconds)" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down Expand Up @@ -137,7 +138,7 @@ jobs:
images: ${{ env.BASE_IMAGE_NAME }}

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down

0 comments on commit da959f4

Please sign in to comment.