Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
minghsu0107 authored Mar 6, 2022
1 parent ba04383 commit e184fb5
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e184fb5

Please sign in to comment.