mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 01:47:39 +00:00
ci: fix nightly release
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
npm run test
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user