Skip to content

Commit e2edefc

Browse files
authored
Merge pull request #78 from silinternational/develop
Release v2.3.3 --GHCR.io image push
2 parents 9d9e2d3 + 59148a7 commit e2edefc

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/test-deploy-publish.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Test, Deploy, Publish
33
on:
44
push:
55
branches: ["**"]
6+
tags: ['v[0-9]+.[0-9]+.[0-9]+']
67
paths-ignore:
78
- 'terraform/**'
89

@@ -52,17 +53,33 @@ jobs:
5253
runs-on: ubuntu-latest
5354
steps:
5455
- name: Checkout code
55-
uses: actions/checkout@v4
56+
uses: actions/checkout@v4
57+
5658
- name: Log in to Docker Hub
5759
uses: docker/login-action@v3
5860
with:
5961
username: ${{ secrets.DOCKERHUB_USERNAME }}
6062
password: ${{ secrets.DOCKERHUB_TOKEN }}
63+
64+
- name: Log in to GitHub Container Registry
65+
uses: docker/login-action@v3
66+
with:
67+
registry: ghcr.io
68+
username: ${{ github.actor}}
69+
password: ${{ secrets.GITHUB_TOKEN}}
70+
6171
- name: Extract metadata (tags, labels) for Docker
6272
id: meta
6373
uses: docker/metadata-action@v5
6474
with:
65-
images: ${{ vars.IMAGE_NAME }}
75+
images: |
76+
${{ vars.IMAGE_NAME }}
77+
ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}
78+
tags: |
79+
type=ref,event=branch
80+
type=semver,pattern={{version}},enable=true
81+
type=semver,pattern={{major.minor}},enable=true
82+
6683
- name: Build and push Docker image
6784
uses: docker/build-push-action@v5
6885
with:

0 commit comments

Comments
 (0)