Skip to content

Commit

Permalink
Merge pull request #298 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 3.10.19 --GHCR.io image push
  • Loading branch information
Praveenraj-K authored Oct 10, 2024
2 parents 1c093bc + fda58f8 commit b70ba03
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Continuous Integration

on:
push:
branches: ['master','main'] # Trigger on the pushes to master & main branches
tags: [ '[0-9]+.[0-9]+.[0-9]+' ]

jobs:
test:
Expand All @@ -18,23 +20,41 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4


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


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

# Extract metadata for the Docker images using the semver
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.DOCKER_ORG }}/ecs-deploy
images: |
${{ vars.DOCKER_ORG }}/ecs-deploy # the name needs to be static "ecs-deploy"
ghcr.io/${{ github.repository_owner }}/ecs-deploy
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major.minor}}
# Build and push Docker image to GHCR and Docker Hub
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

2 changes: 1 addition & 1 deletion ecs-deploy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# Setup default values for variables
VERSION="3.10.18"
VERSION="3.10.19"
CLUSTER=false
SERVICE=false
TASK_DEFINITION=false
Expand Down

0 comments on commit b70ba03

Please sign in to comment.