diff --git a/README.md b/README.md index a1aa03c..75deafc 100644 --- a/README.md +++ b/README.md @@ -11,57 +11,6 @@ Environment variables: - `IMAGES`: Updated images (comma-separated list) - `IMAGE_TAG`: Image tag generated in current build - `KUSTOMIZATION`: Kustomization path relative to the project root -## Github Actions Example -```yaml -name: Publish and Deploy Docker image - -on: - push: - branches: - - main - -jobs: - publish_deploy: - name: Publish and Deploy Docker image - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - - name: Log in to Container Registry - uses: docker/login-action@v1 - with: - registry: harbor.mycompany.com - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract metadata (tags, labels) - id: meta - uses: docker/metadata-action@v3 - with: - images: harbor.mycompany.com/myuser/mysvc1 - - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - - name: Deploy Docker Image - uses: minghsu0107/update-kustomization - env: - SSH_KEY: ${{ secrets.SSH_KEY }} - MANIFEST_HOST: git.mycompany.com - MANIFEST_USER: myuser - MANIFEST_USER_EMAIL: myuser@mycompany.com - MANIFEST_REPO: myapp-manifests - MANIFEST_BRANCH: main - IMAGES: harbor.mycompany.com/myuser/mysvc1 - IMAGE_TAG: ${{ steps.meta.outputs.tags }} - KUSTOMIZATION: overlays/production -``` ## Drone Usage Example ```yaml kind: pipeline