add cloak build workflow (#1240)

* add cloak build workflow

* fix zizmor warnings
This commit is contained in:
Péter Garamvölgyi 2025-09-16 16:57:34 +02:00 committed by GitHub
parent afbbad7c90
commit 10b0905e5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

33
.github/workflows/cloak.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Cloak Docker
on:
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
permissions: {}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Log in to Docker Hub
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract commit digest
id: vars
run: echo "sha8=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT
- name: Build and Push Docker image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
platforms: linux/amd64
push: true
tags: scrolltech/cloak-l2geth:${{ steps.vars.outputs.sha8 }}