Skip to content

Commit

Permalink
Modernize GitHub Actions examples (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Feb 4, 2024
1 parent 985b51d commit 58ebab9
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 320 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
name: calculate-ci-job
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 1.8
distribution: 'temurin'
java-version: 8

- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v2
uses: jfrog/setup-jfrog-cli@v4
env:
JF_ENV_1: ${{ secrets.JF_SECRET_ENV_1 }}
M2_HOME: /usr/local/apache-maven/apache-maven-3.6.3

- name: Ping JFrog CLI
- name: Ping Artifactory
run: jf rt ping

- name: Set Environment Variables
Expand All @@ -50,11 +50,9 @@ jobs:
- if: always()
name: Feature Branch Repository Update
env:
SERVER_ID: tal-eplus-saas
run: |
echo "::set-env name=repository::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
jf mvnc --server-id-resolve=$SERVER_ID --server-id-deploy=$SERVER_ID --repo-resolve-releases=auto-cli-virtual-$repository --repo-resolve-snapshots=auto-cli-virtual-$repository --repo-deploy-releases=auto-cli-virtual-$repository --repo-deploy-snapshots=auto-cli-virtual-$repository
jf mvnc --repo-resolve-releases=auto-cli-virtual-$repository --repo-resolve-snapshots=auto-cli-virtual-$repository --repo-deploy-releases=auto-cli-virtual-$repository --repo-deploy-snapshots=auto-cli-virtual-$repository
- if: always()
name: Build & Deploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is an example Github workflow, which uses the [Setup JFrog CLI Github Actio

## Running the Example
1. Create a new Github repository.
2. Make sure you have version **1.29.0** or above of [JFrog CLI](https://jfrog.com/getcli/) on your local machine, by running ```jfrog -v```.
2. Make sure you have version **1.46.4** or above of [JFrog CLI](https://jfrog.com/getcli/) on your local machine, by running ```jfrog -v```.
3. Configure the details of your Artifactory server by running ```jfrog c add```.
4. Using the server ID you configured, export the server details by running ```jfrog c export <Server ID>```.
5. Copy the generated token to the clipboard.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v3
uses: jfrog/setup-jfrog-cli@v4
env:
# JFrog platform url (for example: https://acme.jfrog.io)
JF_URL: ${{ secrets.JF_URL }}
Expand Down
105 changes: 0 additions & 105 deletions repo-management-github-actions-example/.github/workflows/main.yml

This file was deleted.

4 changes: 0 additions & 4 deletions repo-management-github-actions-example/README.md

This file was deleted.

This file was deleted.

74 changes: 0 additions & 74 deletions repo-management-github-actions-example/maths/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 58ebab9

Please sign in to comment.