1
1
---
2
- name : docker-build-push
2
+ name : 🐳 docker-build-push
3
3
4
4
on :
5
5
workflow_call :
51
51
52
52
jobs :
53
53
build-image :
54
- name : Build Images
54
+ name : 🏗️ Build Images
55
55
runs-on : ubuntu-latest
56
56
57
57
steps :
58
58
59
- - name : Checkout git repo
60
- uses : actions/checkout@v4
59
+ - name : 📦 Checkout git repo
60
+ uses : actions/checkout@v5
61
61
62
- - name : Login to Docker Hub
62
+ - name : 🔑 Login to Docker Hub
63
63
if : ${{ inputs.provider == 'DOCKERHUB' }}
64
64
uses : docker/login-action@v3
65
65
with :
66
66
username : ${{ secrets.DOCKERHUB_USERNAME }}
67
67
password : ${{ secrets.DOCKERHUB_PASSWORD }}
68
68
69
- - name : Push docker image to DOCKERHUB
69
+ - name : 🚀 Push docker image to DOCKERHUB
70
70
if : ${{ inputs.provider == 'DOCKERHUB' }}
71
71
env :
72
72
IMAGE_TAG : ${{ inputs.IMAGE_TAG }}
76
76
docker build -t $images:$IMAGE_TAG $BUILD_PATH
77
77
docker push $images:$IMAGE_TAG
78
78
79
- - name : Configure AWS credentials
79
+ - name : 🔧 Configure AWS credentials
80
80
if : ${{ inputs.provider == 'aws' }}
81
81
uses : aws-actions/configure-aws-credentials@v4
82
82
with :
@@ -88,18 +88,18 @@ jobs:
88
88
role-duration-seconds : ${{ inputs.role-duration-seconds }}
89
89
role-skip-session-tagging : true
90
90
91
- - name : Verify awscli
91
+ - name : 🕵️ Verify awscli
92
92
if : ${{ inputs.provider == 'aws' }}
93
93
run : |
94
94
aws sts get-caller-identity
95
95
96
96
97
- - name : Login to Amazon ECR
97
+ - name : 🔑 Login to Amazon ECR
98
98
if : ${{ inputs.provider == 'aws' }}
99
99
id : login-ecr
100
100
uses : aws-actions/amazon-ecr-login@v2
101
101
102
- - name : Push docker image to Amazon ECR
102
+ - name : 🚢 Push docker image to Amazon ECR
103
103
if : ${{ inputs.provider == 'aws' }}
104
104
id : docker-build
105
105
env :
@@ -112,7 +112,7 @@ jobs:
112
112
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $BUILD_PATH
113
113
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
114
114
115
- - name : Push docker image to Amazon ECR and DOCKERHUB
115
+ - name : 🚀🚢 Push docker image to Amazon ECR and DOCKERHUB
116
116
if : ${{ inputs.provider == 'DOCKERHUB,aws' }}
117
117
env :
118
118
# # For ECR env variable
0 commit comments