We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca91790 commit b8e9146Copy full SHA for b8e9146
1 file changed
.github/workflows/release.yml
@@ -27,3 +27,34 @@ jobs:
27
args: release --clean
28
env:
29
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30
+
31
+ docker-push:
32
+ runs-on: ubuntu-latest
33
+ permissions:
34
+ contents: read
35
+ packages: write
36
+ steps:
37
+ - uses: actions/checkout@v4
38
39
+ - name: Log in to ghcr.io
40
+ uses: docker/login-action@v3
41
+ with:
42
+ registry: ghcr.io
43
+ username: ${{ github.actor }}
44
+ password: ${{ secrets.GITHUB_TOKEN }}
45
46
+ - name: Extract metadata (tags, labels) for Docker
47
+ id: meta
48
+ uses: docker/metadata-action@v5
49
50
+ images: ghcr.io/ultimateform/tcprcon-cli
51
+ tags: |
52
+ type=semver,pattern={{version}}
53
+ type=raw,value=latest
54
55
+ - name: Build and push
56
+ uses: docker/build-push-action@v6
57
58
+ context: .
59
+ push: true
60
+ tags: ${{ steps.meta.outputs.tags }}
0 commit comments