From 77c3b409838a410bb54b7d8f7d3f8d7267018dd7 Mon Sep 17 00:00:00 2001 From: Donavan Fritz Date: Fri, 9 Feb 2024 23:22:02 -0800 Subject: [PATCH] verbose --- .gitea/workflows/main.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index e3ba0ec..d075963 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -13,18 +13,22 @@ jobs: uses: actions/checkout@v4 - name: Build Docker Image (with run number tag) run: | + set -x docker build \ --tag $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }} \ --no-cache . - name: Build Docker Image (with run number tag) run: | + set -x docker push $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }} - name: Tag and Push `latest` Docker image (if main branch) if: ${{ github.ref }} == 'refs/heads/main' run: | + set -x docker tag $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }} $CONTAINER_NAME:latest docker push $CONTAINER_NAME:latest - name: Clean up Docker Images run: | + set -x docker rmi $CONTAINER_NAME:latest || true # Avoid failure if 'latest' tag does not exist docker rmi $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }}