From db745434dacec77632f4925ce26f5101ec676395 Mon Sep 17 00:00:00 2001 From: Aidan Hilt Date: Tue, 18 Jul 2023 12:21:36 -0400 Subject: [PATCH 1/3] Moving dictionary CI from Travis to GitHub Actions --- .github/dictionary_push.yaml | 13 +++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 13 insertions(+), 20 deletions(-) create mode 100644 .github/dictionary_push.yaml delete mode 100644 .travis.yml diff --git a/.github/dictionary_push.yaml b/.github/dictionary_push.yaml new file mode 100644 index 0000000..3199499 --- /dev/null +++ b/.github/dictionary_push.yaml @@ -0,0 +1,13 @@ +name: Build ndhdictionary dictionary + +on: push + +jobs: + dictionary: + name: Build and Deploy Dictionary + uses: uc-cdis/.github/.github/workflows/dictionary_push.yaml + with: + DIRECTORY: "ndhdictionary" + secrets: + AWS_ACCESS_KEY_ID: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d737b15..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: python -python: -- '3.6' -before_script: -- yes | python setup.py install -- git clone https://github.com/uc-cdis/dictionaryutils; cd dictionaryutils -script: -- ./run_tests.sh -deploy: - provider: s3 - access_key_id: AKIAJ2CEZVTSFRBCKRJQ - secret_access_key: - secure: og3FLG+lq3d00+sYGRRh0xfqAO4KaPR8zOR9QRQY1z5HjR8AbwAvwJMLQRC7LX6Fc+Md+lkDWgt6plZ830jO1PwVQovaEKtW2c1gzlSqw+xqA2ZEvkDgyMf2Lsi6C6RJHBVmqc0BH3NYjT2Q2cPzWvCrKbnkinLHmGIhKDhqnd/9HH+gbpCTL4tjzoy3UxZYvGGuI1EsRMddJa8vKowa3fh9dt6V7xTM6gx5bAfqWaZ655DqiAMwaI2SaLxkW2OCRM0sxNXQjmDX8t2NaK9srzH4fGWn2aZWIp6MsGb7r0VpxUA4gMGYpSE4oBShs5+3sSPffte/sf4a2BfzY+n0XGE5kRbqCDYF/w7q9ffyEtUW6trCFD2lCkdnWXVslC04uNYQxeUv4jT2iRDqVntoWlC5fuiYIVJ0s+Wv4nMJB5shuKCG5zeWrpw+D39TvaOwJ2YN/cNJ/aBQFQBMyrYu2xkdG3kE2aAJa2SOMKXVzVjPRpxERSWtZxpMTwVDCJsXuYysvVrBAeTpJJ6kY7dauBMvCX+EbA8HaOayRRP42H3Ldvtnf277lhYOMPCh8+81FovEMFvgFjR/dtcgE/qdTAlDvwt2JZ3iCwLHNBros7P5xL0ZXLpU5b/0HB6hdyON4w+splKcqhnHzRcihfRG0eIx8kbrKj1M/radx6sYIS8= - bucket: dictionary-artifacts - local-dir: artifacts - upload-dir: ndhdictionary/$TRAVIS_BRANCH - skip_cleanup: true - on: - repo: uc-cdis/ndhdictionary - all_branches: true From 548646148dec41bde515670a910ac15fd52ef49b Mon Sep 17 00:00:00 2001 From: Aidan Hilt Date: Tue, 18 Jul 2023 17:16:28 -0400 Subject: [PATCH 2/3] Adding version tag, updating secret name --- .github/dictionary_push.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/dictionary_push.yaml b/.github/dictionary_push.yaml index 3199499..065d7ea 100644 --- a/.github/dictionary_push.yaml +++ b/.github/dictionary_push.yaml @@ -5,9 +5,9 @@ on: push jobs: dictionary: name: Build and Deploy Dictionary - uses: uc-cdis/.github/.github/workflows/dictionary_push.yaml + uses: uc-cdis/.github/.github/workflows/dictionary_push.yaml@master with: DIRECTORY: "ndhdictionary" secrets: - AWS_ACCESS_KEY_ID: ${{ secrets.ECR_AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.ECR_AWS_SECRET_ACCESS_KEY }} + AWS_ACCESS_KEY_ID: ${{ secrets.DICT_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.DICT_AWS_SECRET_ACCESS_KEY }} From 2fd76b9c39286d67aa135353456317eb04d24d38 Mon Sep 17 00:00:00 2001 From: Aidan Hilt Date: Tue, 18 Jul 2023 17:23:57 -0400 Subject: [PATCH 3/3] Moving dictionary action to .github/workflows --- .github/{ => workflows}/dictionary_push.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/dictionary_push.yaml (100%) diff --git a/.github/dictionary_push.yaml b/.github/workflows/dictionary_push.yaml similarity index 100% rename from .github/dictionary_push.yaml rename to .github/workflows/dictionary_push.yaml