From 67e0f6beb5fa31b0313f5a52110819dd4440d7ca Mon Sep 17 00:00:00 2001 From: Anton Engelhardt Date: Mon, 15 Jan 2024 14:00:57 +0100 Subject: [PATCH] Add Docker image build and push action to GitHub workflow Signed-off-by: Anton Engelhardt --- .github/workflows/build.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f214ecb..3741092f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,10 +52,23 @@ jobs: name: wasm_oidc_plugin.wasm path: target/wasm32-wasi/release/wasm_oidc_plugin.wasm - - name: Create Docker Image + docker-image: + needs: test + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Push to Docker Hub uses: docker/build-push-action@v2 with: context: . - file: ./Dockerfile push: true tags: antonengelhardt/wasm-oidc-plugin:latest