Skip to content

feat: update

feat: update #77

Workflow file for this run

name: Publish Docker image
on:
push:
branches: [main,next]
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: zhangtao25/canyon:${{ steps.extract_branch.outputs.branch }}