kind: pipeline type: docker name: default steps: - name: build image: plugins/docker settings: repo: sthopeless/my-nginx-website tags: - latest - ${DRONE_COMMIT_SHA} username: from_secret: docker_username password: from_secret: docker_password dockerfile: Dockerfile dry_run: true purge: false - name: publish image: plugins/docker settings: repo: sthopeless/my-nginx-website tags: - latest - ${DRONE_COMMIT_SHA} username: from_secret: docker_username password: from_secret: docker_password dockerfile: Dockerfile dry_run: true purge: true when: event: - push branch: - main - master # Define secrets for Docker Hub credentials secrets: - docker_username - docker_password