diff --git a/.github/hooks/pre-commit b/.github/hooks/pre-commit new file mode 100755 index 0000000..1783e71 --- /dev/null +++ b/.github/hooks/pre-commit @@ -0,0 +1,3 @@ +#!/bin/bash + +npm run test \ No newline at end of file diff --git a/.github/workflows/nightly-release.yaml b/.github/workflows/nightly-release.yaml index f362d84..e1922bb 100644 --- a/.github/workflows/nightly-release.yaml +++ b/.github/workflows/nightly-release.yaml @@ -18,4 +18,6 @@ jobs: -t "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_SHA:0:7}" \ -t "ghcr.io/${GITHUB_REPOSITORY}:nightly" . - 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" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 921cf2e..8ab4886 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - name: Setup release please - uses: google-github-actions/release-please-action@v2.17 + uses: google-github-actions/release-please-action@v2 id: release with: token: ${{ secrets.GITHUB_TOKEN }} @@ -31,4 +31,6 @@ jobs: TAG_NAME: ${{ steps.release.outputs.tag_name }} - name: Release Docker image 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"