From 0d80c4483aaed1c8b06072526f22895ec0107076 Mon Sep 17 00:00:00 2001 From: Jonathan Ingram Date: Mon, 20 Nov 2023 19:53:02 +1100 Subject: [PATCH] docd: fix Docker workflow --- .github/workflows/docd.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docd.yml b/.github/workflows/docd.yml index e1d2967..4152bc4 100644 --- a/.github/workflows/docd.yml +++ b/.github/workflows/docd.yml @@ -10,13 +10,19 @@ jobs: name: Publish Docker image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: sajari/docd labels: | @@ -27,7 +33,8 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=sha,format=long - - uses: docker/build-push-action@v2 + - name: Build and push + uses: docker/build-push-action@v5 with: context: . file: docd/Dockerfile