Skip to content

Update Nest Test Images #319

Update Nest Test Images

Update Nest Test Images #319

name: Update Nest Test Images
on:
schedule:
- cron: 30 0 * * *
workflow_dispatch:
permissions: {}
env:
FORCE_COLOR: 1
jobs:
update-nest-test-images:
name: Update Nest test images
if: ${{ github.repository == 'OWASP/Nest' }}
permissions:
actions: write
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set up Docker buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f
- name: Login to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Update backend test image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
cache-from: |
type=gha
type=registry,ref=owasp/nest:test-backend-cache
cache-to: |
type=gha,compression=zstd
type=registry,ref=owasp/nest:test-backend-cache
context: backend
file: docker/backend/Dockerfile.test
platforms: linux/amd64
push: true
tags: owasp/nest:test-backend-latest
- name: Update frontend unit test image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
cache-from: |
type=gha
type=registry,ref=owasp/nest:test-frontend-unit-cache
cache-to: |
type=gha,compression=zstd
type=registry,ref=owasp/nest:test-frontend-unit-cache
context: frontend
file: docker/frontend/Dockerfile.unit.test
platforms: linux/amd64
push: true
tags: owasp/nest:test-frontend-unit-latest
- name: Update frontend end-to-end test image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
cache-from: |
type=gha
type=registry,ref=owasp/nest:test-frontend-e2e-cache
cache-to: |
type=gha,compression=zstd
type=registry,ref=owasp/nest:test-frontend-e2e-cache
context: frontend
file: docker/frontend/Dockerfile.e2e.test
platforms: linux/amd64
push: true
tags: owasp/nest:test-frontend-e2e-latest