Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Use user's ccache for calls to Factory+ services #33

Use user's ccache for calls to Factory+ services

Use user's ccache for calls to Factory+ services #33

Workflow file for this run

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