Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zatxm authored May 7, 2024
1 parent 2c86918 commit 72fa102
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build -t zatxm120/myproxy .
Expand All @@ -22,5 +25,5 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Docker image to Docker Hub
run: |
docker push zatxm120/myproxy:${{ github.ref }}
docker push zatxm120/myproxy:${{ steps.get_version.outputs.VERSION }}
docker push zatxm120/myproxy:latest

0 comments on commit 72fa102

Please sign in to comment.