Update .gitea/workflows/simplesbentocreation.yml
This commit is contained in:
@@ -9,11 +9,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check-and-build:
|
check-and-build:
|
||||||
runs-on: ubuntu-latest
|
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:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
# ---------------------
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -36,13 +33,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
registry: git.icc.gg
|
registry: git.icc.gg
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.CR_PAT }}
|
||||||
|
|
||||||
- name: Check if Image Already Exists
|
- name: Check if Image Already Exists
|
||||||
id: exists
|
id: exists
|
||||||
run: |
|
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
|
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 "Image for commit ${{ steps.check.outputs.sha }} already exists."
|
||||||
echo "skip=true" >> $GITHUB_OUTPUT
|
echo "skip=true" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user