Update Nest test images #7
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: Update Nest test images | |
on: | |
schedule: | |
- cron: '30 0 * * *' | |
workflow_dispatch: | |
env: | |
DOCKERHUB_USERNAME: arkid15r | |
FORCE_COLOR: 1 | |
jobs: | |
update-nest-test-images: | |
name: Update Nest test image | |
if: ${{ github.repository == 'OWASP/Nest' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ env.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build backend test image | |
uses: docker/build-push-action@v6 | |
with: | |
cache-from: type=registry,ref=${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-backend:cache | |
cache-to: type=registry,ref=${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-backend:cache,mode=max | |
context: frontend | |
file: frontend/Dockerfile.test | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-backend:latest | |
- name: Build frontend test image | |
uses: docker/build-push-action@v6 | |
with: | |
cache-from: type=registry,ref=${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-frontend:cache | |
cache-to: type=registry,ref=${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-frontend:cache,mode=max | |
context: frontend | |
file: frontend/Dockerfile.test | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ env.DOCKERHUB_USERNAME }}/owasp-nest-test-frontend:latest |