From a75f9beed02a100d4b02f992ff5ccb4870c0c227 Mon Sep 17 00:00:00 2001 From: RapidCodeLab Date: Sat, 18 Nov 2023 10:51:11 +0300 Subject: [PATCH 1/2] fix actions --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e9ae5d..7badd47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,13 +1,15 @@ name: Deploy Docker image to Docker Hub on: push: + branches: + - main tags: - 'v[0-9].[0-9]+.[0-9]+' jobs: deploy: runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ startsWith(github.ref, 'refs/tags/') }} steps: - name: Extract Version id: version_step From 70fef78ee02a5ef02c34701f1bc14489b6849e94 Mon Sep 17 00:00:00 2001 From: RapidCodeLab Date: Sat, 18 Nov 2023 10:54:21 +0300 Subject: [PATCH 2/2] dockerfile fix --- .github/workflows/main.yml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7badd47..36341b9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: branches: - main tags: - - 'v[0-9].[0-9]+.[0-9]+' + # - 'v[0-9].[0-9]+.[0-9]+' jobs: deploy: diff --git a/Dockerfile b/Dockerfile index b1992d3..4a9198a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ FROM scratch COPY --from=build /etc/ssl/certs/ca-certificates.crt \ /etc/ssl/certs/ca-certificates.crt -COPY --from=build /go/src/github.com/RapidCodeLab/rapid-prebid-server/server +COPY --from=build /go/src/github.com/RapidCodeLab/rapid-prebid-server/server \ /server ENTRYPOINT ["/server"]