Skip to content

Commit

Permalink
Update GitHub Actions to latest versions
Browse files Browse the repository at this point in the history
Resolves warnings due to node.js versions which are going EOL. Tested in https://github.com/BenjaminEHowe/caprover-python-flask/blob/main/.github/workflows/docker-build-and-deploy.yaml.
  • Loading branch information
BenjaminEHowe authored Apr 1, 2024
1 parent 463270f commit d2819b9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/ci-cd-integration/deploy-from-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ jobs:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Check out repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -166,13 +167,13 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -182,7 +183,7 @@ jobs:
run: echo "IMAGE_URL=$(echo ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Build and push Docker Image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand Down

0 comments on commit d2819b9

Please sign in to comment.