Skip to content

Update iso22133 ref

Update iso22133 ref #9

Workflow file for this run

name: Push and version tag
on:
pull_request:
types:
- closed
branches:
- master
release:
types: [published]
concurrency: production # Only allow sequential builds
env:
DOCKERFILE: ./Dockerfile
IMAGE_REPO: astazero/iso_object_demo
IMAGE_NAME: atos
jobs:
push_and_version_tagg:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
# Do a dry run versioning to get the new version number for the build
- name: Dry run versioning
id: AutoTaggerDryRun
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BRANCH: master
INITIAL_VERSION: "0.1.0"
DEFAULT_BUMP: patch
DRY_RUN: true
- name: echo new tag
run: |
echo "The next tag version will be: ${{ steps.AutoTaggerDryRun.outputs.new_tag }}"
- name: echo tag
run: |
echo "The current tag is: ${{ steps.AutoTaggerDryRun.outputs.tag }}"
- name: echo part
run: |
echo "The version increment was: ${{ steps.AutoTaggerDryRun.outputs.part }}"
# BuildX allows creation of a managed and customizable BuildKit environment
# in a dedicated Docker container
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Login to Docker Hub to be able to build and push
# ToDo: Fix so that this does not need individual user credentials
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Build docker images for merging to master and push to Docker Hub
- name: Build and push for merging to master
if: ${{ github.event.pull_request.merged == true }}
id: docker-build-merge
uses: docker/build-push-action@v4
with:
context: .
file: ${{ env.DOCKERFILE }}
push: true
tags: ${{ env.IMAGE_REPO }}:${{ steps.AutoTaggerDryRun.outputs.new_tag }},${{ env.IMAGE_REPO }}:latest
# If everything is successful do the actual tagging.
- name: Do the actual tagging
if: ${{ github.event.pull_request.merged == true }}
id: Create_tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BRANCH: master
INITIAL_VERSION: "0.1.0"
DEFAULT_BUMP: patch