This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
Fix copy bootstrap command #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Main | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- 'main' | |
jobs: | |
retag-backend: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Retag Backend | |
run: | | |
TIMESTAMP=$(date +%s) | |
docker pull ghcr.io/amrc-factoryplus/acs-manager:pr-${{ github.event.pull_request.number }}-backend | |
docker tag ghcr.io/amrc-factoryplus/acs-manager:pr-${{ github.event.pull_request.number }}-backend ghcr.io/amrc-factoryplus/acs-manager:main-backend | |
docker push ghcr.io/amrc-factoryplus/acs-manager:main-backend | |
docker tag ghcr.io/amrc-factoryplus/acs-manager:pr-${{ github.event.pull_request.number }}-backend ghcr.io/amrc-factoryplus/acs-manager:main-${{ github.event.pull_request.number }}-backend-$TIMESTAMP | |
docker push ghcr.io/amrc-factoryplus/acs-manager:main-${{ github.event.pull_request.number }}-backend-$TIMESTAMP | |
retag-frontend: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Retag Frontend | |
run: | | |
TIMESTAMP=$(date +%s) | |
docker pull ghcr.io/amrc-factoryplus/acs-manager:pr-${{ github.event.pull_request.number }}-frontend | |
docker tag ghcr.io/amrc-factoryplus/acs-manager:pr-${{ github.event.pull_request.number }}-frontend ghcr.io/amrc-factoryplus/acs-manager:main-frontend | |
docker push ghcr.io/amrc-factoryplus/acs-manager:main-frontend | |
docker tag ghcr.io/amrc-factoryplus/acs-manager:pr-${{ github.event.pull_request.number }}-frontend ghcr.io/amrc-factoryplus/acs-manager:main-${{ github.event.pull_request.number }}-frontend-$TIMESTAMP | |
docker push ghcr.io/amrc-factoryplus/acs-manager:main-${{ github.event.pull_request.number }}-frontend-$TIMESTAMP |