Skip to content

Commit 5c9ab38

Browse files
committed
fix: hack
1 parent ba26bff commit 5c9ab38

2 files changed

Lines changed: 31 additions & 42 deletions

File tree

.github/workflows/docker.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: NPM Release
1+
name: Stencil CLI Release
22

33
on:
44
push:
@@ -23,3 +23,33 @@ jobs:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424
GA_USERNAME: ${{ secrets.PAT_USERNAME }}
2525
GA_TOKEN: ${{ secrets.PAT_TOKEN }}
26+
27+
- name: Get latest Git tag
28+
id: tag
29+
run: |
30+
git fetch --tags
31+
TAG=$(git describe --tags --abbrev=0)
32+
echo "tag=$TAG" >> $GITHUB_OUTPUT
33+
- name: Log in to the Github Container registry
34+
uses: docker/login-action@v3
35+
with:
36+
registry: ghcr.io
37+
username: ${{ github.repository_owner }}
38+
password: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Extract metadata (tags, labels) for Docker
41+
id: meta
42+
uses: docker/metadata-action@v5
43+
with:
44+
images: ghcr.io/${{ github.repository_owner }}/stencil-cli
45+
tags: |
46+
type=semver,pattern={{version}},prefix=,value=${{ steps.tag.outputs.tag }}
47+
type=semver,pattern={{major}},prefix=,value=${{ steps.tag.outputs.tag }}
48+
- name: Set up Docker Buildx
49+
uses: docker/setup-buildx-action@v3
50+
51+
- name: Build and push
52+
uses: docker/build-push-action@v6
53+
with:
54+
push: true
55+
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)