Update base64 requirement from 0.21.5 to 0.22.1 #184
Workflow file for this run
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: PR builder | |
on: | |
pull_request: | |
types: [opened, synchronize, labeled] | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Get shortsha | |
id: vars | |
run: | | |
echo ::set-output name=sha_short::$(git rev-parse --short=6 ${{ github.sha }}) | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- run: rustup target add x86_64-unknown-linux-gnu && sudo apt-get install libssl-dev | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --all-features --target x86_64-unknown-linux-gnu | |
- name: Copy file | |
uses: canastro/[email protected] | |
with: | |
source: target/x86_64-unknown-linux-gnu/release/remote-transmission-bot | |
target: ./remote-transmission-bot | |
- name: Package | |
run: | | |
docker build -t redavtovo/r-trans-bot-rs:${{ steps.vars.outputs.sha_short }} . | |
- name: Docker login | |
if: contains(github.event.pull_request.labels.*.name, 'deploy') | |
uses: azure/docker-login@v1 | |
with: | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Push | |
if: contains(github.event.pull_request.labels.*.name, 'deploy') | |
run: | | |
docker tag redavtovo/r-trans-bot-rs:${{ steps.vars.outputs.sha_short }} redavtovo/r-trans-bot-rs:latest | |
docker push redavtovo/r-trans-bot-rs:${{ steps.vars.outputs.sha_short }} | |
docker push redavtovo/r-trans-bot-rs:latest | |
- name: Prepare K8S | |
if: contains(github.event.pull_request.labels.*.name, 'deploy') | |
uses: Azure/k8s-set-context@v1 | |
with: | |
kubeconfig: ${{ secrets.KUBE_CONFIG }} | |
- name: Deploy to K8S | |
if: contains(github.event.pull_request.labels.*.name, 'deploy') | |
uses: Azure/k8s-deploy@v1 | |
with: | |
namespace: bots | |
manifests: deployment/manifest.yaml | |
images: | | |
redavtovo/r-trans-bot-rs:${{ steps.vars.outputs.sha_short }} | |