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:
|
||||
node-version: '18'
|
||||
|
||||
- name: Start docker
|
||||
shell: bash
|
||||
run: |
|
||||
systemctl start docker
|
||||
|
||||
- name: Set up QEMU
|
||||
id: qemu
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
@ -26,7 +31,7 @@ jobs:
|
|||
- name: Extract version from Cargo.toml
|
||||
shell: bash
|
||||
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
|
||||
uses: docker/login-action@v3
|
||||
|
@ -43,7 +48,7 @@ jobs:
|
|||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
type=raw,value=latest
|
||||
|
||||
- name: Build and push all platforms
|
||||
id: build-and-push
|
||||
|
@ -52,7 +57,7 @@ jobs:
|
|||
push: true
|
||||
labels: |
|
||||
gitsha1=${{ github.sha }}
|
||||
org.opencontainers.image.version=${{ env.EW_VERSION }}
|
||||
org.opencontainers.image.version=${{ env.EW_VERSION }}
|
||||
tags: "${{ steps.set-tag.outputs.tags }}"
|
||||
file: "docker/Dockerfile"
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
|
Loading…
Reference in a new issue