From 6ee069715abd9c5f1bb9d3141541d8401f1542d3 Mon Sep 17 00:00:00 2001 From: Donavan Fritz Date: Thu, 8 Feb 2024 18:22:12 -0800 Subject: [PATCH] workflow formatting --- .gitea/workflows/main.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 1f642df..e3ba0ec 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -11,20 +11,20 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 - - name: Build Docker image with run number tag + - name: Build Docker Image (with run number tag) run: | docker build \ --tag $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }} \ --no-cache . - - name: Push Docker image with run number tag + - name: Build Docker Image (with run number tag) run: | docker push $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }} - - name: Tag and push Docker image as latest if on master branch + - name: Tag and Push `latest` Docker image (if main branch) if: ${{ github.ref }} == 'refs/heads/main' run: | docker tag $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }} $CONTAINER_NAME:latest docker push $CONTAINER_NAME:latest - - name: Clean up docker images + - name: Clean up Docker Images run: | docker rmi $CONTAINER_NAME:latest || true # Avoid failure if 'latest' tag does not exist docker rmi $CONTAINER_NAME:$MAJOR_VERSION.${{ github.run_number }}