Skip to content

Commit

Permalink
Edit: CI/CD GitHub plugin versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlelek committed Dec 1, 2024
1 parent a6802c1 commit 912b2d0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 25 deletions.
1 change: 1 addition & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# GitHub Actions

Documentation and search here
https://github.com/marketplace?type=actions
13 changes: 6 additions & 7 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@
name: Code Analysis
on:
push:
branches: ["main"]
branches: ['main']
pull_request:
branches: ["main"]
branches: ['main']

jobs:
build:

environment: build
# OS List
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4.1.4
- uses: actions/checkout@v4.2.2
# https://github.com/marketplace/actions/setup-node-js-environment
- name: Use Node.js 22.x
uses: actions/setup-node@v4.0.2
uses: actions/setup-node@v4.1.0
with:
node-version: 22.x
#cache: 'npm'
Expand All @@ -30,11 +29,11 @@ jobs:
- run: npm run unit
# https://github.com/marketplace/actions/codecov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.3.0
uses: codecov/codecov-action@v5.0.7
with:
token: ${{ secrets.CODECOV_TOKEN }}
# https://github.com/marketplace/actions/official-fossa-action
- name: Upload to FOSSA
uses: fossas/fossa-action@v1.3.3
uses: fossas/fossa-action@v1.4.0
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
11 changes: 5 additions & 6 deletions .github/workflows/docker.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,34 @@
name: Docker CI
on:
push:
branches: ["main"]
branches: ['main']

jobs:
build:

runs-on: ubuntu-latest
environment: Docker

steps:
# https://github.com/marketplace/actions/checkout
# - name: Build the Docker image
# uses: actions/checkout@v4
# uses: actions/checkout@v4.2.2
# run: docker build . --file Dockerfile --tag raneto/raneto:latest-$(date +%s)

# https://github.com/marketplace/actions/docker-setup-buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v3.7.1

# https://github.com/marketplace/actions/docker-login
# https://github.com/docker/login-action
- name: Login to Docker Hub
uses: docker/login-action@v3
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

# https://github.com/marketplace/actions/build-and-push-docker-images
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6.10.0
with:
#context: .
push: true
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/docker.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,34 @@ on:

jobs:
build:

runs-on: ubuntu-latest
environment: Docker

steps:
# https://github.com/marketplace/actions/checkout
# - name: Build the Docker image
# uses: actions/checkout@v4
# uses: actions/checkout@v4.2.2
# run: docker build . --file Dockerfile --tag raneto/raneto:latest-$(date +%s)

# https://github.com/marketplace/actions/docker-setup-buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v3.7.1

# https://github.com/marketplace/actions/docker-login
# https://github.com/docker/login-action
- name: Login to Docker Hub
uses: docker/login-action@v3
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

# https://github.com/marketplace/actions/build-and-push-docker-images
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
- name: Build and push "version"
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6.10.0
with:
#context: .
push: true
tags:
- "raneto/raneto:${{ github.event.inputs.version }}"
- "raneto/raneto:latest"
- 'raneto/raneto:${{ github.event.inputs.version }}'
- 'raneto/raneto:latest'
9 changes: 4 additions & 5 deletions .github/workflows/nodejs.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
name: Node.js CI
on:
push:
branches: ["main"]
branches: ['main']
pull_request:
branches: ["main"]
branches: ['main']

jobs:
build:

environment: build
strategy:
matrix:
Expand All @@ -28,10 +27,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
# https://github.com/marketplace/actions/setup-node-js-environment
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v4.1.0
with:
node-version: ${{ matrix.node_version }}
#cache: 'npm'
Expand Down

0 comments on commit 912b2d0

Please sign in to comment.