Merge pull request #23 from syspro86/dev #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up QEMU dependency | |
uses: docker/setup-qemu-action@v1 | |
- name: Docker Setup Buildx | |
uses: docker/[email protected] | |
- name: Docker Login | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ github.token }} | |
- name: Build and push Docker images | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: docker/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/mythic-java:latest | |
- name: Send update message | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
mythic-java docker image updated | |
- name: Update rancher deployment | |
uses: th0th/[email protected] | |
with: | |
debug: 'true' | |
disable_output: 'false' | |
rancher_bearer_token: ${{ secrets.RANCHER_BEARER_TOKEN }} | |
rancher_cluster_id: ${{ secrets.RANCHER_CLUSTER_ID }} | |
rancher_namespace: 'default' | |
rancher_project_id: ${{ secrets.RANCHER_PROJECT_ID }} | |
rancher_url: ${{ secrets.RANCHER_URL }} | |
rancher_workloads: 'mythic' | |
tls_skip_verification: 'false' | |