Adding the env. variable with correct name
This commit is contained in:
1 parent
fc5eca2560
commit
02246fe637
1 file changed
+5
-2
@@ -11,6 +11,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set Image name
|
||||||
|
run: |
|
||||||
|
echo "IMAGE_NAME=k2patel/rtorrent:latest" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -23,8 +27,7 @@ jobs:
|
|||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
docker build . -t k2patel/postfix:latest
|
docker build . -t ${{ env.IMAGE_NAME }}:latest
|
||||||
echo "IMAGE_NAME=k2patel/postfix:latest" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Push the Docker image
|
- name: Push the Docker image
|
||||||
run: docker push ${{ env.IMAGE_NAME }}
|
run: docker push ${{ env.IMAGE_NAME }}
|
||||||
Reference in new issue
Block a user