From 39040395af373294206845f247d3e479b215137e Mon Sep 17 00:00:00 2001 From: jsilverio22 <115576434+jsilverio22@users.noreply.github.com> Date: Wed, 8 Mar 2023 15:29:26 -0700 Subject: [PATCH] add workflow for promoting to prod Signed-off-by: Joshua Silverio --- .github/workflows/prod-upgrade.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/prod-upgrade.yml diff --git a/.github/workflows/prod-upgrade.yml b/.github/workflows/prod-upgrade.yml new file mode 100644 index 0000000..c6c0d8e --- /dev/null +++ b/.github/workflows/prod-upgrade.yml @@ -0,0 +1,22 @@ +name: Update Production + +on: + workflow_dispatch: + +jobs: + copy-stg-to-prod: + runs-on: ubuntu-latest + steps: + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Setup crane + uses: imjasonh/setup-crane@00c9e93efa4e1138c9a7a5c594acd6c75a2fbf0c + + - name: Copy Staging to Production + run: | + crane tag ghcr.io/acorn-io/acorn-linkerd-plugin:stg prod \ No newline at end of file