From 547dc7a6e555a9439db49bfb99371354618b4863 Mon Sep 17 00:00:00 2001 From: "Xu, He (Raymond)" Date: Thu, 11 Jul 2024 14:37:58 +1000 Subject: [PATCH 1/3] Added workflow to build docker image --- .github/workflows/docker.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..04c2911 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,32 @@ +name: docker + +on: + push: + tags: + - 'v[0-9\.]+' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GHCR_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v3 + with: + push: true + # use the tag from the event + tags: ghcr.io/raynix/feedi:${{ github.ref_name }} From 3ea23ccbfb78636568f143612e6446231cc8bed7 Mon Sep 17 00:00:00 2001 From: "Xu, He (Raymond)" Date: Thu, 11 Jul 2024 14:43:43 +1000 Subject: [PATCH 2/3] Test tag pattern --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 04c2911..e9dc8b7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,7 +3,7 @@ name: docker on: push: tags: - - 'v[0-9\.]+' + - 'v[0-9.]+' jobs: docker: From d220024f12d132fa83b871a0c682b590117ed823 Mon Sep 17 00:00:00 2001 From: "Xu, He (Raymond)" Date: Thu, 11 Jul 2024 14:49:01 +1000 Subject: [PATCH 3/3] Tag pattern --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e9dc8b7..bc3c385 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,7 +3,7 @@ name: docker on: push: tags: - - 'v[0-9.]+' + - v* jobs: docker: