Update elgohr/Publish-Docker-Github-Action digest to 6aa7c69 #440
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
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
env: | |
RUNNER_TEMP: /tmp | |
- name: Cache dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm install && npm -g install jest | |
- name: Test server | |
working-directory: ./packages/entourage-server | |
run: npm run test | |
# - name: Test CLI | |
# run: cd packages/entourage-cli/ && npm run test | |
- name: Publish to Registry | |
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' | |
uses: elgohr/Publish-Docker-Github-Action@6aa7c6928f7dee6eaf9a3eef414438ed54b3506b | |
with: | |
name: chriskalmar/entourage | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
workdir: packages/entourage-server/ | |
tag_names: true | |
buildoptions: '--compress --force-rm' |