Skip to content

Updated readme

Updated readme #38

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
IMAGE: backup_db
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Load secret
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
AZURE_KEY_VAULT_TEST: op://Test/AzureKeyVaultDemo/url
- uses: actions/checkout@v4
- name: Run tests
env:
GITHUB_ACTIONS: true
run: |
cargo test --verbose
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.USERNAME }}
password: ${{ env.TOKEN }}
- name: Build the Docker image
run: |
docker build -t ${{ env.IMAGE }} .
docker tag ${{ env.IMAGE }} ${{ env.USERNAME }}/${{ env.IMAGE }}:latest
docker push ${{ env.USERNAME }}/${{ env.IMAGE }}:latest