Node.js based forum software built for the modern web
Fix: Docker workflow tweaks (#9792)
Anton Grigoryeve7f4cde46672
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex 1bf8b17459..4af3aff883 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -1,5 +1,3 @@-# This is a basic workflow to help you get started with Actions-name: Run Docker# Controls when the workflow will run@@ -16,27 +14,36 @@ jobs:release:runs-on: ubuntu-lateststeps:- - name: Inject slug/short variables- uses: rlespinasse/[email protected]+- uses: actions/checkout@v2with:fetch-depth: 0++ - name: Docker meta+ id: meta+ uses: docker/metadata-action@v3+ with:+ images: nodebb/docker+ tags: |+ type=semver,pattern={{version}}+ type=semver,pattern={{major}}.{{minor}}+ type=sha,+ type=raw,value=latest+- name: Login to Docker Hubuses: docker/login-action@v1with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}- - name: Set up QEMU- uses: docker/setup-qemu-action@v1+- name: Set up Docker Buildxuses: docker/setup-buildx-action@v1+- name: Build and push Docker images- # You may pin to the exact commit or the version.- # uses: docker/build-push-action@1bc1040caef9e604eb543693ba89b5bf4fc80935- uses: docker/[email protected]+ uses: docker/build-push-action@v2with:- image: ${{ secrets.DOCKERHUB_USERNAME }}/nodebb- platforms: linux/amd64,linux/arm64/v8,linux/arm/v7+ context: .+ file: ./Dockerfile+ platforms: linux/amd64,linux/arm64/v8push: true- # List of tags- tags: ${{ env.GITHUB_REF_SLUG }},${{ env.GITHUB_BASE_REF_SLUG }},${{ env.GITHUB_SHA_SHORT }}+ tags: ${{ steps.meta.outputs.tags }}