Skip to content

Commit b8e9146

Browse files
committed
cd: image push
1 parent ca91790 commit b8e9146

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,34 @@ jobs:
2727
args: release --clean
2828
env:
2929
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+
with:
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+
with:
58+
context: .
59+
push: true
60+
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)