Testing very first docker build
All checks were successful
Testing / test (1.23.x, ubuntu-latest) (push) Successful in 56s
Build and Push Docker Image / build-and-push (push) Successful in 9m12s

This commit is contained in:
2025-02-10 18:07:51 -05:00
parent e6abc692eb
commit 08c9147f50
5 changed files with 97 additions and 33 deletions

View File

@ -16,7 +16,7 @@ jobs:
build-and-push:
runs-on: ubuntu-latest
# needs: test
if: startsWith(github.ref, 'refs/tags')
# if: startsWith(github.ref, 'refs/tags')
steps:
- name: Extract Version
id: version_step
@ -43,21 +43,21 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: PrepareReg Names
id: read-docker-image-identifiers
run: |
echo VERSION_TAG=$(echo ${{ steps.version_step.outputs.version_tag }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
echo LASTEST_TAG=$(echo ${{ steps.version_step.outputs.latest_tag }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
# - name: PrepareReg Names
# id: read-docker-image-identifiers
# run: |
# echo VERSION_TAG=$(echo ${{ steps.version_step.outputs.version_tag }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
# echo LASTEST_TAG=$(echo ${{ steps.version_step.outputs.latest_tag }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
push: true
tags: |
${{env.VERSION_TAG}}
${{env.LASTEST_TAG}}
build-args: |
${{steps.version_step.outputs.version}}
registry.akaiv.io/${{ github.event.repository.name }}:latest
registry.akaiv.io/${{ github.event.repository.name }}:${{ env.RELEASE_VERSION }}
# - name: Build and push
# id: docker_build
# uses: docker/build-push-action@v6
# with:
# push: true
# tags: |
# ${{env.VERSION_TAG}}
# ${{env.LASTEST_TAG}}
# build-args: |
# ${{steps.version_step.outputs.version}}
# docker.savin.nyc/${{ github.event.repository.name }}:latest
# docker.savin.nyc/${{ github.event.repository.name }}:${{ env.RELEASE_VERSION }}