Skip to content

feat: relocate SSH directory (for the container use cases) #8

feat: relocate SSH directory (for the container use cases)

feat: relocate SSH directory (for the container use cases) #8

Workflow file for this run

name: ananta Image CI
on:
push:
branches:
- 'master'
paths:
- '.github/workflows/ananta.yml'
- 'docker-entrypoint.sh'
- 'Dockerfile'
schedule:
- cron: "0 5 1-31/10 * *"
workflow_dispatch:
env:
ananta_repo: ${{ secrets.DOCKERHUB_USERNAME }}/ananta
jobs:
ananta:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ env.ananta_repo }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
-
name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.ananta_repo }}:latest \
| grep -Po '[^ \r\n\t\v]+@sha256:[a-z0-9]+' | xargs -r -t -n 1 docker buildx imagetools inspect --raw
-
name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.30.0
with:
image-ref: "${{ env.ananta_repo }}:latest"
format: 'table'