243
Some checks failed
Build Docker Image And Push / Build PHP 8.0 (push) Failing after 6m24s

This commit is contained in:
meng 2024-03-15 11:42:31 +08:00
parent 6cfa6e80fb
commit 20aaed1f1c

View File

@ -19,21 +19,25 @@ jobs:
build: build:
name: Build PHP 8.0 name: Build PHP 8.0
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
env: env:
PHP_CLI_VERSION: 8.0-cli-alpine PHP_CLI_VERSION: 8.0-cli-alpine
steps: steps:
- name: Login to Git Docker Hub - name: Login to Git Docker Hub
# https://github.com/docker/login-action#docker-hub # https://github.com/docker/login-action#docker-hub
uses: docker/login-action@v3 uses: http://git.des8.com/docker/login-action@master
with: with:
registry: git.des8.com registry: git.des8.com
username: ${{ secrets.HUB_USERNAME }} username: ${{ secrets.HUB_USERNAME }}
password: ${{ secrets.HUB_PASSWORD }} password: ${{ secrets.HUB_PASSWORD }}
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: http://git.des8.com/docker/checkout@main
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: Set up Docker BuildX
uses: https://git.des8.com/docker/setup-buildx-action@v2.6.0
- name: Extract metadata (tags, labels) for Docker - name: Extract metadata (tags, labels) for Docker
id: meta id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
@ -42,7 +46,10 @@ jobs:
- name: Build and push - name: Build and push
# https://github.com/docker/build-push-action # https://github.com/docker/build-push-action
uses: build-push-action@v4 uses: http://git.des8.com/docker/build-push-action@master
env:
# 必需有且置空查看官方文档解释https://docs.gitea.com/zh-cn/next/usage/actions/comparison?_highlight=build&_highlight=push&_highlight=action#dockerbuild-push-actionv4
ACTIONS_RUNTIME_TOKEN: ''
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile