Skip to content

Commit 808c22e

Browse files
committed
chore: repository name
Signed-off-by: Gaius <[email protected]>
1 parent 2f3e3f5 commit 808c22e

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
password: ${{ secrets.GITHUB_TOKEN }}
4646

4747
- name: PrepareReg Names
48-
run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
48+
run: |
49+
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
50+
echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV
4951
5052
- name: Push to Docker Hub
5153
uses: docker/build-push-action@v2
@@ -102,7 +104,9 @@ jobs:
102104
password: ${{ secrets.GITHUB_TOKEN }}
103105

104106
- name: PrepareReg Names
105-
run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
107+
run: |
108+
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
109+
echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV
106110
107111
- name: Push to Docker Hub
108112
uses: docker/build-push-action@v2
@@ -159,7 +163,9 @@ jobs:
159163
password: ${{ secrets.GITHUB_TOKEN }}
160164

161165
- name: PrepareReg Names
162-
run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
166+
run: |
167+
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
168+
echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV
163169
164170
- name: Push to Docker Hub
165171
uses: docker/build-push-action@v2
@@ -216,7 +222,9 @@ jobs:
216222
password: ${{ secrets.GITHUB_TOKEN }}
217223

218224
- name: PrepareReg Names
219-
run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
225+
run: |
226+
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
227+
echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV
220228
221229
- name: Push to Docker Hub
222230
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)