We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493c22b commit ba95942Copy full SHA for ba95942
.dockerignore
@@ -0,0 +1 @@
1
+node_modules
.github/workflows/release.yml
@@ -4,6 +4,8 @@ on:
4
push:
5
tags:
6
- v*
7
+ branches:
8
+ - main
9
10
jobs:
11
release-image:
@@ -29,8 +31,17 @@ jobs:
29
31
with:
30
32
username: ${{ secrets.DOCKER_USERNAME }}
33
password: ${{ secrets.DOCKER_PASSWORD }}
- - name: Build and push
34
+ - name: Build and push snapshot
35
id: docker_build
36
+ if: github.ref == 'refs/heads/main'
37
+ uses: docker/build-push-action@v3
38
+ with:
39
+ push: true
40
+ tags: |
41
+ sourcegraph/scip-typescript:latest-snapshot
42
+ - name: Build and push tag
43
+ id: docker_build
44
+ if: startsWith(github.ref, 'refs/tags/v')
45
uses: docker/build-push-action@v3
46
47
push: true
0 commit comments