Skip to content

Increased spec version (#577) #12

Increased spec version (#577)

Increased spec version (#577) #12

Workflow file for this run

name: Releaser Docker
on:
push:
branches-ignore:
- '**'
tags:
- '*'
workflow_dispatch:
jobs:
# build avail image and publish to dockerhub
docker_linux_amd64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Prepare
id: prepare
run: |
TAG=${GITHUB_REF#refs/tags/}
echo "tag_name=${TAG}" >> $GITHUB_OUTPUT
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push images
uses: docker/build-push-action@v3
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: availj/avail:${{ steps.prepare.outputs.tag_name }}
build-args: |
AVAIL_TAG=${{ steps.prepare.outputs.tag_name }}