From 3cad79dfa929f135c5d8e3e341ef3576afbf3433 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 5 Mar 2024 16:39:11 +0530 Subject: [PATCH] Add museum release action --- .../workflows/server-release.yml | 10 ++----- server/.github/workflows/dev-ci.yml | 28 ------------------- 2 files changed, 2 insertions(+), 36 deletions(-) rename server/.github/workflows/prod-ci.yml => .github/workflows/server-release.yml (70%) delete mode 100644 server/.github/workflows/dev-ci.yml diff --git a/server/.github/workflows/prod-ci.yml b/.github/workflows/server-release.yml similarity index 70% rename from server/.github/workflows/prod-ci.yml rename to .github/workflows/server-release.yml index 791e5218ce..d3007e9410 100644 --- a/server/.github/workflows/prod-ci.yml +++ b/.github/workflows/server-release.yml @@ -1,16 +1,10 @@ -name: Prod CI +name: "Release (server)" on: - workflow_dispatch: - # Enable manual run - push: - # Sequence of patterns matched against refs/tags - tags: - - "v*" # Push events to matching v*, i.e. v4.2.0 + workflow_dispatch: # Run manually jobs: build: - # This job will run on ubuntu virtual machine runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/server/.github/workflows/dev-ci.yml b/server/.github/workflows/dev-ci.yml deleted file mode 100644 index 8900f53694..0000000000 --- a/server/.github/workflows/dev-ci.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Dev CI - -on: - workflow_dispatch: - # Enable manual run - push: - # Sequence of patterns matched against refs/tags - tags: - - "v*" # Push events to matching v*, i.e. v4.2.0 - -jobs: - build: - # This job will run on ubuntu virtual machine - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - name: Check out code - - - uses: mr-smithers-excellent/docker-build-push@v6 - name: Build & Push - with: - image: ente/museum-dev - registry: rg.fr-par.scw.cloud - enableBuildKit: true - buildArgs: GIT_COMMIT=${GITHUB_SHA} - tags: ${GITHUB_SHA}, latest - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }}