Skip to content

revert to 13.0.0 git tag for build #7

revert to 13.0.0 git tag for build

revert to 13.0.0 git tag for build #7

name: Build and Push to Docker Hub
on:
push:
branches:
- main
- master
tags:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
IMAGE_NAME: ${{ github.repository }}
TARGET_VERSION: 13.0.0
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ env.TARGET_VERSION }}
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
- name: Download Vocbench Source
run: curl -L https://bitbucket.org/art-uniroma2/vocbench3/downloads/vocbench3-${{ env.TARGET_VERSION }}-full.zip -o ${{ env.TARGET_VERSION }}/vocbench3-${{ env.TARGET_VERSION }}-full.zip
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: ${{ env.TARGET_VERSION }}
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}