Build and Push RMCS Images #8
Workflow file for this run
This file contains hidden or 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: Build and Push RMCS Images | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'Dockerfile' | |
| branches: | |
| - main | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Set up SSH keys | |
| run: | | |
| mkdir -p .ssh | |
| chmod 700 .ssh | |
| echo "${{ secrets.CONTAINER_ID_RSA }}" > .ssh/id_rsa | |
| echo "${{ secrets.CONTAINER_ID_RSA_PUB }}" > .ssh/id_rsa.pub | |
| chmod 600 .ssh/id_rsa | |
| chmod 644 .ssh/id_rsa.pub | |
| - name: Build and push rmcs-develop:latest | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| target: rmcs-develop | |
| tags: qzhhhi/rmcs-develop:latest | |
| - name: Build and push rmcs-runtime:latest | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| target: rmcs-runtime | |
| tags: qzhhhi/rmcs-runtime:latest |