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
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REGISTRY: gitea.lab:80
|
||||
REGISTRY: gitea.lab
|
||||
IMAGE_NAME: sancho41/condado-newsletter
|
||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
@@ -55,11 +55,11 @@ jobs:
|
||||
|
||||
- name: Build all-in-one image
|
||||
run: |
|
||||
docker build -t "${REGISTRY}/${IMAGE_NAME}:latest" -f Dockerfile.allinone .
|
||||
docker tag "${REGISTRY}/${IMAGE_NAME}:latest" "${REGISTRY}/${IMAGE_NAME}:${{ gitea.sha }}"
|
||||
docker build -t ${IMAGE_NAME}:latest" -f Dockerfile.allinone .
|
||||
docker tag ${IMAGE_NAME}:latest" ${IMAGE_NAME}:${{ gitea.sha }}"
|
||||
|
||||
- name: Build result debug
|
||||
run: |
|
||||
set -eu
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user