Skip to content

release πŸŽ‰

release πŸŽ‰ #44

Workflow file for this run

name: release πŸŽ‰
on:
schedule:
- cron: "0 0 * * MON"
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout the code
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
-
name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
-
name: Get the current date
id: date
uses: nanzm/get-time-action@v1.1
with:
timeZone: 8
format: 'YYYY-MM-DD'
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: hueristiq/web-hacking-toolkit:latest,hueristiq/web-hacking-toolkit:${{ steps.date.outputs.time }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}