Skip to content

Commit

Permalink
Merge pull request #78 from silinternational/develop
Browse files Browse the repository at this point in the history
Release v2.3.3 --GHCR.io image push
  • Loading branch information
Praveenraj-K authored Oct 11, 2024
2 parents 9d9e2d3 + 59148a7 commit e2edefc
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test-deploy-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Test, Deploy, Publish
on:
push:
branches: ["**"]
tags: ['v[0-9]+.[0-9]+.[0-9]+']
paths-ignore:
- 'terraform/**'

Expand Down Expand Up @@ -52,17 +53,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor}}
password: ${{ secrets.GITHUB_TOKEN}}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.IMAGE_NAME }}
images: |
${{ vars.IMAGE_NAME }}
ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}},enable=true
type=semver,pattern={{major.minor}},enable=true
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit e2edefc

Please sign in to comment.