Update .gitea/workflows/simplesbentocreation.yml
This commit is contained in:
@@ -9,11 +9,8 @@ on:
|
||||
jobs:
|
||||
check-and-build:
|
||||
runs-on: ubuntu-latest
|
||||
# --- CORREÇÃO AQUI ---
|
||||
# Forçamos o uso de uma imagem que contém as ferramentas necessárias (como o node para rodar as actions)
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
# ---------------------
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -36,13 +33,11 @@ jobs:
|
||||
with:
|
||||
registry: git.icc.gg
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
|
||||
- name: Check if Image Already Exists
|
||||
id: exists
|
||||
run: |
|
||||
# Nota: O 'docker manifest' pode falhar se o daemon docker não estiver exposto.
|
||||
# Se der erro aqui, o runner precisa ter o socket do docker montado (/var/run/docker.sock)
|
||||
if docker manifest inspect git.icc.gg/${{ gitea.repository }}:${{ steps.check.outputs.sha }} > /dev/null 2>&1; then
|
||||
echo "Image for commit ${{ steps.check.outputs.sha }} already exists."
|
||||
echo "skip=true" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user