4234
Some checks failed
Build Docker Image And Push / Build PHP ${{ matrix.php-version }} (ubuntu-latest, 8.0) (push) Failing after 8s

This commit is contained in:
meng 2024-03-15 11:09:33 +08:00
parent 30d98896e7
commit fe24d4fad9

View File

@ -34,17 +34,19 @@ jobs:
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: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(echo ${{ github.ref }} | awk -F"/" '{print $3}' | awk -F"v" '{print $2}') >> $GITHUB_OUTPUT
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
github-server-url: http://git.des8.com github-server-url: http://git.des8.com
repository: ${{ secrets.HUB_USERNAME }}/webman-docker repository: ${{ secrets.HUB_USERNAME }}/webman-docker
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ secrets.HUB_USERNAME }}/webman-docker
- 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: build-push-action@v4
@ -59,3 +61,4 @@ jobs:
tags: | tags: |
${{ secrets.HUB_USERNAME }}/webman-docker:${{ env.PHP_CLI_VERSION }} ${{ secrets.HUB_USERNAME }}/webman-docker:${{ env.PHP_CLI_VERSION }}
${{ secrets.HUB_USERNAME }}/webman-docker:${{ env.PHP_CLI_VERSION }}${{ github.ref_type == 'tag' && format('-{0}', github.ref_name) || '' }} ${{ secrets.HUB_USERNAME }}/webman-docker:${{ env.PHP_CLI_VERSION }}${{ github.ref_type == 'tag' && format('-{0}', github.ref_name) || '' }}
labels: ${{ steps.meta.outputs.labels }}