From 54b5f9ad1430647870591a46cc433f3100f40838 Mon Sep 17 00:00:00 2001 From: "alex.hill@gmail.com" Date: Fri, 6 Sep 2024 10:49:53 +0100 Subject: [PATCH] add docker github action --- .github/workflows/docker.yaml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/docker.yaml diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..cc258b8 --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,37 @@ +name: 🚢 Docker + +on: + push: + branches: + - main + pull_request: + +env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + docker: + name: 🚢 Docker + runs-on: ubuntu-latest + steps: + - name: ⬇️ Checkout repo + uses: actions/checkout@v4 + + - name: 🔨 Build image + run: ./docker/build + + - name: 🔥 Smoke test + run: ./docker/smoke-test + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: 🚢 Push image + run: ./docker/push