Testing very first docker build
This commit is contained in:
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@ -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 }}
|
||||
|
Reference in New Issue
Block a user