Skip to content

Build and push (tag) #6

Build and push (tag)

Build and push (tag) #6

Workflow file for this run

name: Build and push (tag)
on:
workflow_dispatch:
inputs:
tag:
required: true
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Check out code
- name: Login 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@v3.0.0
- name: Build and push
run: |
docker buildx build --push \
--tag ${{ secrets.DOCKERHUB_USERNAME }}/kusochkibot:${{ github.event.inputs.tag }} \
--platform linux/amd64,linux/arm64 .