Update .forgejo/workflows/docker.yml
Some checks failed
Build docker images / build (push) Failing after 40s
Some checks failed
Build docker images / build (push) Failing after 40s
This commit is contained in:
parent
16b4c53b99
commit
262da13975
1 changed files with 8 additions and 3 deletions
|
@ -13,6 +13,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '18'
|
||||||
|
|
||||||
|
- name: Start docker
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
systemctl start docker
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
@ -26,7 +31,7 @@ jobs:
|
||||||
- name: Extract version from Cargo.toml
|
- name: Extract version from Cargo.toml
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "EW_VERSION=$(grep "^version" Cargo.toml | sed -E 's/version\s*=\s*["]([^"]*)["]/\1/')" >> $GITHUB_ENV
|
echo "EW_VERSION=$(grep "^version" Cargo.toml | sed -E 's/version\s*=\s*["]([^"]*)["]/\1/')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Log in to DockerHub
|
- name: Log in to DockerHub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
@ -43,7 +48,7 @@ jobs:
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=false
|
latest=false
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
type=raw,value=latest
|
||||||
|
|
||||||
- name: Build and push all platforms
|
- name: Build and push all platforms
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
|
@ -52,7 +57,7 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
labels: |
|
labels: |
|
||||||
gitsha1=${{ github.sha }}
|
gitsha1=${{ github.sha }}
|
||||||
org.opencontainers.image.version=${{ env.EW_VERSION }}
|
org.opencontainers.image.version=${{ env.EW_VERSION }}
|
||||||
tags: "${{ steps.set-tag.outputs.tags }}"
|
tags: "${{ steps.set-tag.outputs.tags }}"
|
||||||
file: "docker/Dockerfile"
|
file: "docker/Dockerfile"
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|
Loading…
Reference in a new issue