Skip to content

Commit

Permalink
Update actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
claabs committed Feb 9, 2024
1 parent 00a97bf commit 1a507cb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node.js for use with actions
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/build_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set environment variables
run: echo "GIT_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
install: true

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push master (Alpine)
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
provenance: false # enable later when runtime support is better
target: deploy
Expand All @@ -60,7 +60,7 @@ jobs:

- name: Build and push master (Debian)
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
provenance: false # enable later when runtime support is better
target: deploy
Expand All @@ -69,6 +69,8 @@ jobs:
tags: |
charlocharlie/epicgames-freegames:bullseye-slim
ghcr.io/claabs/epicgames-freegames-node:bullseye-slim
charlocharlie/epicgames-freegames:debian
ghcr.io/claabs/epicgames-freegames-node:debian
platforms: linux/amd64
build-args: |
COMMIT_SHA=${{ github.sha }}
Expand All @@ -78,7 +80,7 @@ jobs:

- name: Build and push dev
if: ${{ github.ref == 'refs/heads/develop' }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
provenance: false # enable later when runtime support is better
target: deploy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v3
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snyk-container-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
snyk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# - name: Build a Docker image
# run: docker build -t ghcr.io/claabs/epicgames-freegames-node:latest .
- name: Scan Alpine image
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Node.js for use with actions
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
Expand Down

0 comments on commit 1a507cb

Please sign in to comment.