ci: fix nightly release

This commit is contained in:
Jef LeCompte
2021-02-21 23:43:13 -05:00
parent e6803d4d7c
commit 5f81a8a25f
3 changed files with 10 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
npm run test
+3 -1
View File
@@ -18,4 +18,6 @@ jobs:
-t "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}" \ -t "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}" \
-t "ghcr.io/${GITHUB_REPOSITORY}:nightly" . -t "ghcr.io/${GITHUB_REPOSITORY}:nightly" .
- name: Release Docker image - name: Release Docker image
run: docker push "ghcr.io/${GITHUB_REPOSITORY}" run: |
docker push "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}"
docker push "ghcr.io/${GITHUB_REPOSITORY}:nightly"
+4 -2
View File
@@ -11,7 +11,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Setup release please - name: Setup release please
uses: google-github-actions/release-please-action@v2.17 uses: google-github-actions/release-please-action@v2
id: release id: release
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
@@ -31,4 +31,6 @@ jobs:
TAG_NAME: ${{ steps.release.outputs.tag_name }} TAG_NAME: ${{ steps.release.outputs.tag_name }}
- name: Release Docker image - name: Release Docker image
if: ${{ steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}
run: docker push "ghcr.io/${GITHUB_REPOSITORY}" run: |
docker push "ghcr.io/${GITHUB_REPOSITORY}:${TAG_NAME}"
docker push "ghcr.io/${GITHUB_REPOSITORY}:latest"