remove publish job from ci

This commit is contained in:
Ronald A. Richardson
2023-05-29 15:16:38 +08:00
parent 458f82b294
commit cab26d3080

View File

@@ -28,29 +28,3 @@ jobs:
- name: Build and Start Docker Services
run: |
docker-compose up -d --build
publish:
if: startsWith(github.ref, 'refs/tags/')
name: Push Docker image to Docker Hub
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: your-dockerhub-username/your-repo-name:${{ steps.get_version.outputs.VERSION }}