feat: simplify registry references in build and docker-compose files
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 15s
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 15s
This commit is contained in:
@@ -10,7 +10,7 @@ jobs:
|
|||||||
name: Build And Publish Production Image
|
name: Build And Publish Production Image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
REGISTRY: gitea.lab:80
|
REGISTRY: gitea.lab
|
||||||
IMAGE_NAME: sancho41/condado-newsletter
|
IMAGE_NAME: sancho41/condado-newsletter
|
||||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
@@ -55,11 +55,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build all-in-one image
|
- name: Build all-in-one image
|
||||||
run: |
|
run: |
|
||||||
docker build -t "${REGISTRY}/${IMAGE_NAME}:latest" -f Dockerfile.allinone .
|
docker build -t ${IMAGE_NAME}:latest" -f Dockerfile.allinone .
|
||||||
docker tag "${REGISTRY}/${IMAGE_NAME}:latest" "${REGISTRY}/${IMAGE_NAME}:${{ gitea.sha }}"
|
docker tag ${IMAGE_NAME}:latest" ${IMAGE_NAME}:${{ gitea.sha }}"
|
||||||
|
|
||||||
- name: Build result debug
|
- name: Build result debug
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
echo "Listing produced image tags"
|
echo "Listing produced image tags"
|
||||||
docker image ls "${REGISTRY}/${IMAGE_NAME}" --format 'table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.CreatedSince}}' || true
|
docker image ls ${IMAGE_NAME}" --format 'table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.CreatedSince}}' || true
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ services:
|
|||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
condado-newsletter:
|
condado-newsletter:
|
||||||
image: gitea.lab/sancho41/condado-newsletter:latest
|
image: sancho41/condado-newsletter:latest
|
||||||
container_name: condado-newsletter
|
container_name: condado-newsletter
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user