This repository has been archived by the owner on Sep 11, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
460 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,82 @@ | ||
name: Branch Imager | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
Build: | ||
name: Compiling TypeScript | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Restore CI Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-14-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install NodeJS Dependencies | ||
run: yarn | ||
- name: Compile TypeScript | ||
uses: icrawl/action-tsc@v1 | ||
with: | ||
build: src | ||
- name: Upload API bundle to artifacts | ||
uses: actions/upload-artifact@v2-preview | ||
with: | ||
name: api_bundle | ||
path: generated/api/ | ||
Build: | ||
name: Compiling TypeScript | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Restore CI Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-14-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install NodeJS Dependencies | ||
run: yarn | ||
- name: Compile TypeScript | ||
uses: icrawl/action-tsc@v1 | ||
with: | ||
build: src | ||
- name: Upload API bundle to artifacts | ||
uses: actions/upload-artifact@v2-preview | ||
with: | ||
name: api_bundle | ||
path: generated/api/ | ||
|
||
Dockerhub: | ||
name: Publish image to Dockerhub | ||
runs-on: ubuntu-latest | ||
if: "!(contains(github.event.head_commit.message, '[skip ci]') ||contains(github.event.head_commit.message, '[skip docker]'))" | ||
needs: Build | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v2 | ||
- name: Download build bundle artifact | ||
uses: actions/download-artifact@v2-preview | ||
with: | ||
name: api_bundle | ||
path: generated/api/ | ||
- name: Get GitHub Branch Name | ||
run: echo ::set-env name=GITHUB_BRANCH_NAME::$(echo ${{ github.ref }} | cut -c12- | sed -e 's/\/\|_/-/g') | ||
- name: Publish to Dockerhub | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: skyrabot/saelem | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
tags: "${{ env.GITHUB_BRANCH_NAME }}" | ||
Dockerhub: | ||
name: Publish image to Dockerhub | ||
runs-on: ubuntu-latest | ||
if: "!(contains(github.event.head_commit.message, '[skip ci]') ||contains(github.event.head_commit.message, '[skip docker]'))" | ||
needs: Build | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v2 | ||
- name: Download build bundle artifact | ||
uses: actions/download-artifact@v2-preview | ||
with: | ||
name: api_bundle | ||
path: generated/api/ | ||
- name: Get GitHub Branch Name | ||
run: echo ::set-env name=GITHUB_BRANCH_NAME::$(echo ${{ github.ref }} | cut -c12- | sed -e 's/\/\|_/-/g') | ||
- name: Publish to Dockerhub | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: skyrabot/saelem | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
tags: '${{ env.GITHUB_BRANCH_NAME }}' | ||
|
||
Github-Package-Registry-Docker: | ||
name: Publish image to Github Package Registry | ||
runs-on: ubuntu-latest | ||
if: "!(contains(github.event.head_commit.message, '[skip ci]') ||contains(github.event.head_commit.message, '[skip docker]'))" | ||
needs: Build | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v2 | ||
- name: Download build bundle artifact | ||
uses: actions/download-artifact@v2-preview | ||
with: | ||
name: api_bundle | ||
path: generated/api/ | ||
- name: Get GitHub Branch Name | ||
run: echo ::set-env name=GITHUB_BRANCH_NAME::$(echo ${{ github.ref }} | cut -c12- | sed -e 's/\/\|_/-/g') | ||
- name: Publish to Github Package Registry | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: skyra-project/saelem/saelem | ||
username: NM-EEA-Y | ||
password: ${{ secrets.SKYRA_TOKEN }} | ||
tags: "${{ env.GITHUB_BRANCH_NAME }}" | ||
registry: docker.pkg.github.com | ||
Github-Package-Registry-Docker: | ||
name: Publish image to Github Package Registry | ||
runs-on: ubuntu-latest | ||
if: "!(contains(github.event.head_commit.message, '[skip ci]') ||contains(github.event.head_commit.message, '[skip docker]'))" | ||
needs: Build | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v2 | ||
- name: Download build bundle artifact | ||
uses: actions/download-artifact@v2-preview | ||
with: | ||
name: api_bundle | ||
path: generated/api/ | ||
- name: Get GitHub Branch Name | ||
run: echo ::set-env name=GITHUB_BRANCH_NAME::$(echo ${{ github.ref }} | cut -c12- | sed -e 's/\/\|_/-/g') | ||
- name: Publish to Github Package Registry | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: skyra-project/saelem/saelem | ||
username: NM-EEA-Y | ||
password: ${{ secrets.SKYRA_TOKEN }} | ||
tags: '${{ env.GITHUB_BRANCH_NAME }}' | ||
registry: docker.pkg.github.com |
Oops, something went wrong.