Skip to content

Rename path to dir

Rename path to dir #7

Workflow file for this run

name: Docker Image CI
env:
# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
IMAGE_NAME: "bysir/drone-qiniu"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/docker/login-action
# get at https://hub.docker.com/settings/security, set on Github repository settings/secrets/actions
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# https://github.com/docker/build-push-action#git-context
- name: Build and push Docker
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}