Skip to content

Commit 963907d

Browse files
authored
Merge pull request #5 from ababak/dev
Fix gtihub workflow docker_tag
2 parents 03cfca6 + 95a6817 commit 963907d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ jobs:
1515

1616
- name: Login to DockerHub
1717
if: github.event_name != 'pull_request'
18-
uses: docker/login-action@v1
18+
uses: docker/login-action@v3
1919
with:
2020
username: ${{ secrets.DOCKER_HUB_USERNAME }}
2121
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
2222

2323
- name: Set output variables
2424
id: vars
2525
run: |
26-
echo "docker_tag=$('${{ github.ref_name }}' -replace '^v', '' -replace '\.\w+$', '')" >> $GITHUB_OUTPUT
26+
echo "DOCKER_TAG=$('${{ github.ref_name }}' -replace '^v', '' -replace '\.\w+$', '')" >> $GITHUB_OUTPUT
2727
2828
- name: Build Docker image
29-
run: docker build . --file Dockerfile --tag ababak/cgcpp:${{ steps.vars.outputs.docker_tag }}
29+
run: docker build . --file Dockerfile --tag ababak/cgcpp:$DOCKER_TAG
3030

3131
- name: Push
32-
run: docker push ababak/cgcpp:${{ steps.vars.outputs.docker_tag }}
32+
run: docker push ababak/cgcpp:$DOCKER_TAG

0 commit comments

Comments
 (0)