mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ci: debug hub_docker_ci.yml issue (try 2, add concurrency group, add a persistent single builder gh-builder
)
This commit is contained in:
parent
30dc58f53f
commit
da290e6510
1 changed files with 13 additions and 1 deletions
14
.github/workflows/hub_docker_ci.yml
vendored
14
.github/workflows/hub_docker_ci.yml
vendored
|
@ -1,6 +1,7 @@
|
|||
name: hub_docker_ci
|
||||
|
||||
# trigger on new release tag, and on weekly tag:
|
||||
## Trigger on both new release tags, and on weekly tags.
|
||||
## Allow for manual override too:
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
@ -8,6 +9,10 @@ on:
|
|||
- '[0-9].[0-9]+.[0-9]+'
|
||||
- 'weekly.*'
|
||||
|
||||
concurrency:
|
||||
group: 'hub_docker_ci-${{ github.ref }}'
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
publish-new-docker-images:
|
||||
strategy:
|
||||
|
@ -31,6 +36,11 @@ jobs:
|
|||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Create & bootstrap persistent builder
|
||||
run: |
|
||||
docker buildx create --name gh-builder --driver docker-container --use
|
||||
docker buildx inspect --bootstrap
|
||||
|
||||
- name: generate tags conditionally
|
||||
id: gen_tags
|
||||
run: |
|
||||
|
@ -43,6 +53,7 @@ jobs:
|
|||
- uses: docker/build-push-action@v6
|
||||
name: Build and deploy v image
|
||||
with:
|
||||
builder: gh-builder
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ${{ steps.gen_tags.outputs.TAGS }}
|
||||
|
@ -55,6 +66,7 @@ jobs:
|
|||
- uses: docker/build-push-action@v6
|
||||
name: Build and deploy developer build
|
||||
with:
|
||||
builder: gh-builder
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: thevlang/vlang:${{ matrix.os }}-dev
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue