Merge pull request #4 from aleleba/PR-574034

PR-574034: changing inage registry.
This commit is contained in:
2026-02-27 21:27:27 -06:00
committed by GitHub
2 changed files with 10 additions and 6 deletions

View File

@@ -9,6 +9,9 @@ on:
pull_request: pull_request:
branches: ['*'] branches: ['*']
env:
REGISTRY: gitea.p-lao.com
# Define the jobs that run as part of the workflow # Define the jobs that run as part of the workflow
jobs: jobs:
# Job to run unit tests # Job to run unit tests
@@ -44,7 +47,7 @@ jobs:
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
# Job and deploy app to Docker Hub # Job and deploy app to Gitea Registry
build-and-deploy: build-and-deploy:
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
needs: [ unit-testing ] needs: [ unit-testing ]
@@ -59,13 +62,14 @@ jobs:
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Login to Gitea Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} registry: ${{ env.REGISTRY }}
password: ${{ secrets.DOCKERHUB_TOKEN }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
push: true push: true
tags: aleleba/run-app-from-cdn:latest tags: gitea.p-lao.com/aleleba/run-app-from-cdn:latest

View File

@@ -1,6 +1,6 @@
{ {
"name": "run-app-from-cdn", "name": "run-app-from-cdn",
"version": "1.1.1", "version": "1.1.2",
"description": "Una aplicación sencilla en Express que sirve una aplicación a través de un enlace CDN.", "description": "Una aplicación sencilla en Express que sirve una aplicación a través de un enlace CDN.",
"main": "src/app.ts", "main": "src/app.ts",
"scripts": { "scripts": {