We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28924cb commit f9270f2Copy full SHA for f9270f2
1 file changed
.github/workflows/build.yml
@@ -7,16 +7,26 @@ jobs:
7
build:
8
runs-on: ubuntu-latest
9
steps:
10
+ - name: Checkout repository
11
+ uses: actions/checkout@v4
12
+
13
- name: Login to GitHub Container Registry
14
uses: docker/login-action@v2
15
with:
16
registry: ghcr.io
17
username: ${{ github.actor }}
18
password: ${{ secrets.GITHUB_TOKEN }}
19
20
+ - name: Read package version
21
+ id: pkg
22
+ run: echo "version=$(node -p \"require('./package.json').version\")" >> "$GITHUB_OUTPUT"
23
24
- name: Build and push ghcr.io
25
id: build-and-push
26
uses: docker/build-push-action@v3.1.0
27
28
+ context: .
29
push: true
- tags: ghcr.io/${{ github.repository }}:latest
30
+ tags: |
31
+ ghcr.io/${{ github.repository }}:${{ steps.pkg.outputs.version }}
32
+ ghcr.io/${{ github.repository }}:latest
0 commit comments